0
[solved] kindly make a program for below output .
output : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
7 Respostas
+ 4
Hemant Kosrekar
count=1
for i in range(4):
for i in range(5):
print(count, end= " ")
count+=1
print()
+ 3
But we don't make a program for you ,not on sololearn I can say .
If you need help show us the code you have written so far .
+ 2
Kindly show your attempt.
+ 1
abhay ,slick
thank you so much abhay and slick i saw your code too
your logic is 100% correct
+ 1
you don't need a variable to increment, and rather could compute its value:
for i in range(4):
for j in range(5):
print(i*5+j+1,end=' ')
print()
0
for i in range(5):
print()
for i in range(1,6):
print(i, end= " ")