for i in range(1,11):
    print(i)
for j in range (1,20,2):
    print(j)

for k in range(10,0,-1):
    print(k)

for l in range(3,33,3):
    print(l)
else:
    print("process terminated")
#while basic loop
i=1
while(i<=10):
    print(i)
    i=i+1

#write a program print to n number
n=int(input("enter the number"))
i=1
while(i<=n):
    print(i)
    i=i+1
#write a program to print from 10 to 1
i=10
while(i>=1):
    print(i)
    i=i-1

    #sum of n number


n=int(input("enter the number"))
i=1
sum=0
while(i<=n):
    sum=sum+i
    i=i+1
print("sum=",sum)

