Please help me with the 'Logic' of this program

Printable View