How to print sum of more than four variables? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to print sum of more than four variables?

How

26th Jun 2019, 12:22 PM
Orina Jeremiah
Orina Jeremiah - avatar
2 Answers
+ 2
Put them in an array or list. Use a loop to sum all elements.
26th Jun 2019, 8:18 PM
Denise Roßberg
Denise Roßberg - avatar
0
in what language even?!
26th Jun 2019, 2:09 PM
Anton Böhler
Anton Böhler - avatar