Please edit your post and wrap your code with code tags:


YOUR CODE HERE

to get highlighting and preserve formatting.

One way to see if the program does what you want is to thoroughly test...