0
I'm stuck at lesson 36 code project Python
Pls help, Question sum of consecutive numbers, N =int(input()) Result total sum from 0 to N Help pls!!!
4 Answers
+ 6
Will Lim
Use range(1, N + 1) in for loop and add each number or just do this without loop
sum = N * (N + 1) // 2
+ 5
You can use either for-loop or the sum formula.
+ 3
Will Lim
In which language? How we would know?
- 1
đ
°đ
š đ
đ
đ
đ
đ
Ł Python, by checking his profile ;)