Prints out squares of 1 to 1000