# Program to sum integers from 1 to N N = int( input('Give a number : ') ) # n is the loop variable n = 1 sum = 0 while n <= N : sum = sum + n n = n + 1 print(sum)