[SOLVED] The following program works, but its ugly. Modify it to ...

[SOLVED] The following program works, but its ugly. Modify it to ...

More to explore