1 2 3 4 5 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

1 2 3 4 5

kindly write code for this using while loop

3rd Oct 2016, 5:04 PM
Imran Gul
Imran Gul - avatar
3 Answers
+ 2
n = 1 s = 20 while n <=5 : print (" "*s ,n) n +=1 s -=4 u can change the value of s to make the space larger or smaller as u want
3rd Oct 2016, 5:15 PM
hassan omar
hassan omar - avatar
0
thanks dear
3rd Oct 2016, 5:24 PM
Imran Gul
Imran Gul - avatar
0
1 22 333 4444 55555 by using while loop
3rd Oct 2016, 5:33 PM
Imran Gul
Imran Gul - avatar