fork download
  1. #include <stdio.h>
  2. int main(void)
  3. { static int p=2;
  4. int i,n,j;
  5. scanf("%d",&n);
  6. for(i=1;i<=n;i++)
  7. {
  8. for(j=0;j<i;j++)
  9. {
  10. printf("%10.5d",(p*(2*p-1)));
  11. p+=2;
  12. }
  13. printf("\n");
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 9432KB
stdin
3
stdout
     00006
     00028     00066
     00120     00190     00276