ShriRam Changed status to publish August 18, 2023
n=input(“Enter Number”);
n=int(n)
i = 1
sum=0
while (i <= n):
sum=sum+i
i = i+ 1
print (sum)
ShriRam Changed status to publish August 18, 2023
n=input(“Enter Number”);
n=int(n)
i = 1
sum=0
while (i <= n):
sum=sum+i
i = i+ 1
print (sum)