Need help with the logic of the program

Printable View