Do-while loop

Hi

This is my suggestion for the do while loop. As you can see I do not use any temporary varible in main instead I am using the return value from isPlayingAgain() function as a endcondition in my do-while loop.

The reason I can do it is becaue this functions return value is a boolean.

SourceCode

Privacy & Terms