# Arithmetische Reihe # while-Schleife n = int(input('n = ')) i=1 sum = 0 while i<=100: sum = sum + i i += 1 print('1 + 2 + . . . . +',n,' = ',sum)