0

What do u mean by loops? plz explain while , for, do while in short with example

6th Jul 2017, 4:49 PM
Mihir Hattangdi
Mihir Hattangdi - avatar
2 Antworten
+ 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
6th Jul 2017, 5:05 PM
Av Nish
Av Nish - avatar