+ 2
Where's your attempt? Hint: sum of consecutive can be found easily using any loops or much better use mathematics formula to do it.
16th Mar 2021, 6:39 AM
minirkk
minirkk - avatar
- 1
N = int(input()) count = N x = range(1, N +1) for i in x: N = i + N print(N - count)
18th May 2021, 8:09 AM
Đ˜ŃĐ»Đ°ĐŒ Алб
Đ˜ŃĐ»Đ°ĐŒ Алб - avatar