Please post the program's output and add some comments to show what you want changed.

Please fix the indentations and the placement of the }s to show the logic.

Is this the same problem:...