@Jeanne Boyarsky
Gotchya! Thanks for clarifying that
When I apply the edits,I think it goes into an infinite loop...since its not producing any output...unless I am doing something wrong :\
===========================================================================================
@Debdeep Ganguly
Yes! The code works with the suggested ammendment! Although I do not get the expected results
-------------------------------
Expected output
Help on:
1. if
2. switch
3. while
4. do-while
5. for
Choose one:
4
The do-while
do{
statement;
}while(condition);
--------------------------------------
Output after suggested ammendment
Help on:
if:
switch:
while:
do - while:
for
:
choose one: