Please solve this code void students quit is not running at 2nd time /Please if anyone have better code for this program share | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please solve this code void students quit is not running at 2nd time /Please if anyone have better code for this program share

https://code.sololearn.com/cZUuv384Q8n8/?ref=app

25th Oct 2020, 11:23 AM
Anurag Chaurasiya
Anurag Chaurasiya - avatar
2 Answers
0
in your code, I don't see a way to exit your do while loop once you enter the "else" statement. Typing in quit while you're in the else loop won't work because you haven't added a statement setting br=1 in the else loop.
28th Oct 2020, 12:23 PM
Ifrah Hammad
Ifrah Hammad - avatar
0
I want to exit do while loop only by the input outside the else statement.
28th Oct 2020, 12:45 PM
Anurag Chaurasiya
Anurag Chaurasiya - avatar