print ("1~100までの数字を入力してください") N = int(input(">> ")) a = 0 b = 0 while a <= N: b += a a += 1 print(b)