Write a program with a for loop that produces the following output:
for
1 4 9 16 25 36 49 64 81 100
This is actually easy; you need a for loop and simple multiplication of i × i.
[Back to the Assignments List]