n = 100
s = 0
c = 1
while c <= n:
    s = s + c
    c = c + 1

print("1 到 %d 之和为: %d" % (n, s))