Header Ads

Header ADS

1146.Growing Sequence in python

This is the solution of this problem in python:

while True:
    x=int(input())
    if(x==0):
        break
    else:
        for i in range(1,x):
            print(i,end=" ")
        print(x,end="\n")
           
   

No comments

Powered by Blogger.