How to user char to terminate the application?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to user char to terminate the application??

I have the total how do I do to terminate the application and show the total amount the put https://code.sololearn.com/cddZaPkJ7FTz/?ref=app

18th Nov 2019, 9:36 PM
Shofi Uddin
1 Answer
0
Terminate using a while/do-while loop. Kind of like - Assuming required variables to be declared and initialized. do{ something; cout << "Finish (Press F)" << endl; cin >> isFinished; } while(isFinished != 'F')
22nd Nov 2019, 2:19 AM
Aayush Bhansali
Aayush Bhansali - avatar