Can someone rewrite this code so that it outputs in this order? c1, t1, l1, c2, t2, l2.... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone rewrite this code so that it outputs in this order? c1, t1, l1, c2, t2, l2....

https://code.sololearn.com/cAoe4w25v3UP/?ref=app

20th Mar 2019, 10:19 PM
Lucas
Lucas - avatar
2 Answers
20th Mar 2019, 10:37 PM
Mike
Mike - avatar
+ 2
Just by flipping the loops around (having i loop through "123456789" as the outer loop and h loop through s as the inner) will have your output work as you need 👍
20th Mar 2019, 10:37 PM
Faisal
Faisal - avatar