Java Learning Made Easy by Dheeraj Mehrotra - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Do While Statement of JAVA

02059.jpg02060.jpg02061.jpg02062.jpg

This format of the WHILE statement is an exit controlled iteration

02063.jpg

statement. In this the condition which is to be checked lies at the

02064.jpg

end of the execution statement/statements and is hence executed at

02065.jpg

least once no matter the conditon is met or not.

02066.jpg02067.jpgIt has the following format :

 

02068.jpg02069.jpg02070.jpgdo
02071.jpg02072.jpg

{

02073.jpg

body of the loop

02074.jpg

}

02075.jpg

while (test expression);

02076.jpg02077.jpg02078.jpg02079.jpg02080.jpg02081.jpg02082.jpg02083.jpg02084.jpg02085.jpgattention@computerscienceexpertise.com
02086.jpg02087.jpg02088.jpg02089.jpg02090.jpg02091.jpg02092.jpg02093.jpg02094.jpg02095.jpg02096.jpg02097.jpg02098.jpg02099.jpg