+ 1

Where is and how true while is used eg -while(true){//statements}

3rd Dec 2017, 4:24 AM
Mr SS(sanskar suri)
Mr SS(sanskar suri) - avatar
2 Antworten
+ 1
thanks sir
3rd Dec 2017, 5:03 AM
Mr SS(sanskar suri)
Mr SS(sanskar suri) - avatar
0
Here, the statements will continue to execute while the condition is true. Any condition returns only two values which is either true or false. while(10 == 10) is equivalent to while(true) while(10 > 10) is equivalent to while(false)
3rd Dec 2017, 4:56 AM
Rachit Mishra
Rachit Mishra - avatar