+ 2

What is while loop?

Are those which are depend on us are called while loop

5th Dec 2017, 11:50 AM
Puneet Bhardwaj
Puneet Bhardwaj - avatar
3 ответов
+ 29
if u want to execute certain statements only if codition specified comes to true , then u can use while () , for () loop there is difference of syntax example ::: . int a=3; while (a>=1){ System.out.println(a); // 3, 2 ,1 a--; }
5th Dec 2017, 12:11 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
x = 6 while ( x != 0 ){ // it will run until x becomes zero --x; }
5th Dec 2017, 11:58 AM
#RahulVerma
#RahulVerma - avatar
+ 2
How many want to run are depend on us
5th Dec 2017, 11:51 AM
Puneet Bhardwaj
Puneet Bhardwaj - avatar