Accepts an integer and prints the integers from 0 to that input integer in a spiral format.