0

Accumulator loops ???

Say I added two numbers and it gave me the total... What if I want to give the user the option to add more numbers to the to previous total? How can I put that in a loop? To keep asking if they want to add more? How can I make a loop pause to ask the user if they want to continue adding different numbers?

6th Feb 2020, 2:01 AM
CLEO
CLEO - avatar
2 odpowiedzi
+ 3
//After every sum operations put input from user
6th Feb 2020, 3:02 AM
Sudarshan Rai
Sudarshan Rai - avatar
0
For example see this post... He tried, got it finally.. You just need adding to is printing like after or before taking input... cout<<"enter values; to stop enter =" ; //for that example... https://www.sololearn.com/Discuss/2157305/?ref=app
6th Feb 2020, 9:44 AM
Jayakrishna 🇮🇳