What is the code to plus as many numbers as I input | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 ? ? ?

9th Dec 2017, 9:22 AM
Gültekin Eroğlu
Gültekin Eroğlu - avatar
3 Answers
+ 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
9th Dec 2017, 9:28 AM
Shamima Yasmin
Shamima Yasmin - avatar
0
Thanks dudes
9th Dec 2017, 9:45 AM
Gültekin Eroğlu
Gültekin Eroğlu - avatar