Give example of the do while loop, C/C++ Programming

Assignment Help:

The do..while Loop

The general format is as follows :

                do

{

                                statements;

                                :

                                :

                 }             while(condition);

 

e.g.

                do

                 {

                                cout << x;

                 }             while( x < = 10);

The do.. while loop is exactly like while loop, with single difference. Here testing is done after implementing the statements inside the loop and if the condition evaluates to true then we enter the loop again ,while in while only after the expression is checked we enter the loop.  We can say do loop is implemented at least once.

 


Related Discussions:- Give example of the do while loop

Contacts manager data and image facebook sync, Project Description: coll...

Project Description: collect / modify person records / photo images/ lookup / facebook iphone and ipad App basic function : 1 user will configure facebook connection

Flowchart, how to define a contanst in a flowchart like we do in c language...

how to define a contanst in a flowchart like we do in c language

Assigment Help, I need help in the C++ programming assignment. I can send t...

I need help in the C++ programming assignment. I can send the files the assignment is times 3hrs.

Inheritance, example of program to ad two numbers

example of program to ad two numbers

C program for diviser, C Program for DIVISER   void main() {  ...

C Program for DIVISER   void main() {           int result,number,min;           clrscr();           printf("ENTER THE NUMBER=");           flushall();

Pebble merchant, having 2 arrays and 3killograms of pebbles are needed conv...

having 2 arrays and 3killograms of pebbles are needed converting an area of 1 square meter the rate of pebble is $5 per killograms

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd