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

27th Jan 2021, 10:41 AM
Hemant Kosrekar
Hemant Kosrekar - avatar
7 Réponses
+ 4
Hemant Kosrekar count=1 for i in range(4): for i in range(5): print(count, end= " ") count+=1 print()
27th Jan 2021, 10:49 AM
Abhay
Abhay - avatar
+ 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 .
27th Jan 2021, 10:44 AM
Abhay
Abhay - avatar
+ 2
Kindly show your attempt.
27th Jan 2021, 10:44 AM
Slick
Slick - avatar
+ 1
abhay ,slick thank you so much abhay and slick i saw your code too your logic is 100% correct
27th Jan 2021, 10:56 AM
Hemant Kosrekar
Hemant Kosrekar - avatar
+ 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()
27th Jan 2021, 8:06 PM
visph
visph - avatar
0
for i in range(5): print() for i in range(1,6): print(i, end= " ")
27th Jan 2021, 10:47 AM
Hemant Kosrekar
Hemant Kosrekar - avatar