CSC 160 - Computer Programming for Non-majors

Assignment #7 - Finding the squares of 1 Through 10.

Due Thursday, October 15, 2015

Write a program with a for loop that produces the following output:

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]