n=int(input())sum=0for i in range(1,n+1): sum=sum+i print(sum," ",end=" ")
10
1 3 6 10 15 21 28 36 45 55
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!