m = int(input("Enter number of lines: "))
n = int(input("Enter number of columns: "))
for i in range(1, m * n + 1):
if i % m == 0:
print(i)
else:
print(i, end=' ')
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments