Please help me about Sum of Consecutive Numbers ,i didn't understand | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please help me about Sum of Consecutive Numbers ,i didn't understand

10th Jul 2021, 2:36 AM
Christopher Bernard Wintara
2 Answers
0
if input is 4, you must output result of 1+2+3+4 (10)
10th Jul 2021, 2:41 AM
visph
visph - avatar
0
use loop to do the computation ;)
10th Jul 2021, 2:44 AM
visph
visph - avatar