while loop statement | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

while loop statement

if the condition is false we cant use while loop statement so what can we use

23rd Oct 2018, 4:39 PM
Onyeke Joshua
Onyeke Joshua - avatar
1 Resposta
+ 2
You can use while(!condition). In this case, the loop will break as soon as the condition is true
23rd Oct 2018, 5:03 PM
Anna
Anna - avatar