Please explain what your program does when you execute it and show what is printed out.

To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select...