How do I use a loop on two or more integers at the same time? Please help... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I use a loop on two or more integers at the same time? Please help...

I've been finding it hard to use a loop on more than one integer, so I thought it would be best to just ask.

9th Aug 2020, 6:18 PM
Emmanuel
Emmanuel - avatar
2 Answers
+ 1
But in fact you can use for(i=0,j=0; i <5; i++,j+=2) and etc
9th Aug 2020, 6:33 PM
george
george - avatar
0
Via chain loop bloks. for(...){for(...)...} But this is not good practise. Since each for loop increase complexivity of your code. 1 for is On, 2 fors(one inside other) On^2
9th Aug 2020, 6:31 PM
george
george - avatar