0
What do u mean by loops? plz explain while , for, do while in short with example
1 Resposta
+ 1
while statement {
code
}
Till the time statement equals to "true" the "code" will be executed
If the statement is true always as if:
while 3>2{
code
}
The code will run infinite times (might cause a crash)
"while" loop is quite like "if" statement but the difference is that it's a loop