Can you post the program's output and explain what is wrong with it and show what it should be?
Also provide all the input required to execute the program. A very easy way to do that is by putting...