- 1

I don't get it. Help.

Sum of consecutive numbers https://code.sololearn.com/cW4kzrl1Ro2G/?ref=app

8th Feb 2021, 12:00 PM
Xaniar
Xaniar - avatar
2 ответов
+ 4
It's quite easy, btw you complicated it a bit 😅 You can write it in 2/3 lines. https://code.sololearn.com/cRpV67sE4ZNH/?ref=app Here's the example. :) I added the explanation in the comments in the code :) Hope I helped you :)
8th Feb 2021, 12:06 PM
Matthew
Matthew - avatar
+ 1
😲
8th Feb 2021, 12:09 PM
Xaniar
Xaniar - avatar