It was difficulty to figure out how to rewrite square() with a for-loop,
I had to try out many different ways to use the for-loop code before it
finally worked.
Something interesting I find about ranges is how it does not count the
maximum when printing the numbers.
Why does it not count the maximum?