from math import* x=1 r=0 while x<=10: r=x+r x=x+1 print(r) print() x=1 r=0 for loop in range(10): r=x+r x=x+1 print(r)