0

Tell me why the first for loop is infinite bc there is a break statement

If you try to run it you will be stuck in the loop forever and as mentioned before I put a break statement there too https://code.sololearn.com/cSlhDWm2TVOq/?ref=app

30th Jul 2022, 10:38 AM
Renz
2 Antworten
0
I am pretty sure that's not how the "if" statement works. You have to say something like: if((a==b) && (c==d)), not if(a && b && c && d == 1 || 2 || 3 || 4)
30th Jul 2022, 10:43 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
0
Oh I have to make an expression What do you suggest
30th Jul 2022, 10:45 AM
Renz