Write a program in python to print sum of 1 to 30 number using while loop.
Answers
Answered by
0
Answer:
n=1
sum=0
while(n<=30):
sum=sum+i
i=i+1
Answered by
0
Answer:
n=1
sum=0
while(n<=30):
sum=sum+i
i=i+1
Explanation:
Similar questions