0

Someone can make me code program looping to exit program?

program must with type data char. if we type "y" the program will go back to menu. if we type "n" the program will be exit

11th Nov 2016, 8:50 AM
putriharviana
putriharviana - avatar
2 Réponses
+ 1
Do {.............} While (choice ! = 'N'); This will keep repeating the code between the brackets until you give choice an n value as a char. Remember that you'll need declare choice as a char type. And if you want to be fancy you can use toupper or tolower make sure the program gets what it needs
11th Nov 2016, 9:06 AM
Myleek Chase
Myleek Chase - avatar
0
I am about to post something that does that
11th Nov 2016, 8:53 AM
Myleek Chase
Myleek Chase - avatar