fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int x,y,i;
  6. scanf("%d",&x);
  7. for(i=0;i<x;i++)
  8. {
  9. i=i*i;
  10. printf("%d ",i);
  11.  
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 10320KB
stdin
5
stdout
0 1 4