What is the code to plus as many numbers as I input | SoloLearn: Learn to code for FREE!

0

What is the code to plus as many numbers as I input

I can make it plus 3 or more numbers but I have to write code for each of them. I want it to plus all the numbers I write no metter how many seperate numbers do you know how ? ? ?

12/9/2017 9:22:21 AM

Gültekin Eroğlu

3 Answers

New Answer

+11

https://stackoverflow.com/questions/21838582/how-to-find-sum-of-several-integers-input-by-user-using-do-while-while-statemen

+7

Use infinite loop or do while loop to take inputs and add to sum. You can use any condition like, if user enters 0, the loop will break. Edit: something like this: https://code.sololearn.com/clYQpc2L4knT/?ref=app

0

Thanks dudes