How to sum group of elements without for-loop and while(do-while) loops? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to sum group of elements without for-loop and while(do-while) loops?

How you will sum? In this way you can sum group of elements without using for-loop writing on c++17 standard. Try it for yourself: https://code.sololearn.com/c2Ba6WX57Z0U/#cpp Write your code using favorite language.

11th Sep 2018, 1:03 PM
Dmytro Kovryzhenko
Dmytro  Kovryzhenko - avatar
2 Answers
+ 1
You can use while or do while
12th Sep 2018, 2:04 AM
Alexander Santos
Alexander Santos - avatar
0
Good I should ask without for-loop and while-loops))
12th Sep 2018, 4:53 AM
Dmytro Kovryzhenko
Dmytro  Kovryzhenko - avatar