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 ? ? ?
3 ответов
+ 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