Is it possible to set a condition inside while() while taking arguments from do{} or something? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is it possible to set a condition inside while() while taking arguments from do{} or something?

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

25th Jan 2021, 7:20 PM
VIKAS
VIKAS - avatar
2 Answers
+ 2
Outside do while loop just declare quit and don't initialize it with = .... Inside do while loop assign value to quit... string quit; do{ quit = ....;....}while....
25th Jan 2021, 7:49 PM
HBhZ_C
HBhZ_C - avatar
+ 2
I think a simple while loop would be better for your program.
25th Jan 2021, 7:58 PM
Sonic
Sonic - avatar