0

Doesn't while() with empty parenthesis mean while true?

https://code.sololearn.com/cbtnYmzRHx4r/?ref=app

10th Jul 2021, 3:18 PM
Srinath
5 Answers
+ 4
Verstappen The syntax of do while loop is: do { //expression } while(condition); So it is necessary to have a condition inside while.
10th Jul 2021, 4:56 PM
A͢J
A͢J - avatar
+ 3
Verstappen Nope, the while loop needs an expression inside the brackets. Any number other than 0 works.
10th Jul 2021, 3:21 PM
Calvin Thomas
Calvin Thomas - avatar
+ 3
No! Even compiler is telling you 🤨🤨😒
10th Jul 2021, 4:04 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
+ 1
Calvin Thomas oh okay thanks!
10th Jul 2021, 3:23 PM
Srinath
0
🌀 Shail Murtaza شعیل مرتضیٰ like I can't read. Just had this doubt
11th Jul 2021, 3:46 AM
Srinath