Exercise "A method for printing square numbers using for , while and do ... while "