
print("我来帮你算从1到n的所有整数的和")
print("告诉我你想计算的n")
n=int(input())
counter=1
sum=0
while counter<=n:
    sum=sum+counter
    counter+=1
print("从1到%d的和为: %d" %(n,sum))


a64589c220bff5458728af735c1458b3600b75ec
<mask token>

print('我来帮你算从1到n的所有整数的和')
print('告诉我你想计算的n')
<mask token>
while counter <= n:
    sum = sum + counter
    counter += 1
print('从1到%d的和为: %d' % (n, sum))

print('我来帮你算从1到n的所有整数的和')
print('告诉我你想计算的n')
n = int(input())
counter = 1
sum = 0
while counter <= n:
    sum = sum + counter
    counter += 1
print('从1到%d的和为: %d' % (n, sum))


print("我来帮你算从1到n的所有整数的和")
print("告诉我你想计算的n")
n=int(input())
counter=1
sum=0
while counter<=n:
    sum=sum+counter
    counter+=1
print("从1到%d的和为: %d" %(n,sum))

