/** * square-all * Read lots of ints from stdin and square them. */ #include int main () { int i; while (scanf ("%d", &i) != EOF) { printf ("%d^2 = %d\n", i, i*i); } // while return 0; }