How does this work if (size >= 150 //size <=50){step =-1; } } | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

How does this work if (size >= 150 //size <=50){step =-1; } }

6th Jan 2022, 10:26 AM
David .C.Tochukwu-uzukwu
2 Respuestas
+ 5
Are you sure it's // and not || inside the condition?
6th Jan 2022, 10:41 AM
Ipang
+ 1
Sorry it's || #my bad
6th Jan 2022, 11:48 AM
David .C.Tochukwu-uzukwu