Header Ads

Header ADS

1145.logical sequence-2 in python

This is the solution of this problem in python:

X,Y=input().split()
X=int(X)
Y=int(Y)
count=0
for i in range(1,Y+1):
    print(i,end=" ")
    count+=1
    if (count==X):
        print(" ")
        count=0

1 comment:

Powered by Blogger.