Google

Thursday, January 21, 2010

CSC 202: Exercise 3

1. Write a program that inputs a number and prints a square
eg. if user enters 5, it will print:



2. Modify the program above so that it will print a hollow square
instead, eg. if user enters 5, it will print:



SOLUTION: