fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int n;
  5. int x = n * n;
  6.  
  7. printf ("TABLE OF SQUARES FOR 1 TO 10\n");
  8.  
  9. for ( n=1; n<=10; ++n)
  10. printf( "%d---", n);
  11. printf("\n");
  12. scanf("%i", &n);
  13. {
  14. printf("%i", n*n);
  15.  
  16. }
  17. return (0);}
  18.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
TABLE OF SQUARES FOR 1 TO 10
1---2---3---4---5---6---7---8---9---10---
121