N=10

i=0
while i<=N:
    print(i)
    i+=1

sum_it=0
i=1
while i<=N:
    sum_it+=i
    i+=1

print("The sum of 1 to ",N," is ",sum_it)
