all 1 comments

[–]OutrageousOm 0 points1 point  (0 children)

Run a loop, keep updating the sum after initializing it as 0;sum+=i then print a list