Can you copy the program's output and paste it here so we can see what it is doing?
Add some comments to show what is wrong.

Also add some comments to the code describing what it is trying to do...