answersLogoWhite

0

What is while . do statement?

User Avatar

Anonymous

12y ago
Updated: 8/20/2019

Do while is a conditional statement which is used to check the certain condition and then perform the operation. usally the do word written first and the the loop occurs and then the while conditionoccurs. The main thing in case of do while is that it will perform the operation written in the loop at least once because it executes first and then check the condition. The syntax for the do -while loop can be as follows.....

do

{

...............

...............

}while(-)

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the purpose of break statement in c?

The break statement exits control of the innermost for, while or do-while loop, or switch statement.


Why you use while function in c?

It is a statement; you can create a loop with it: while (<condition>) <statement>


What is the purpose do while statement differ from while statement?

In do while statement, no matter with condition at least one time true statement was run and then it ll check condition. When we need to run true block compulsory one time and then we want to check condition then do while statement useful rather than wile statement.


What are iterative statements?

An iterative statement is a looping statement, such as a 'for', 'while', or 'do-while' statement. They cause statements to be repeated (iterated) multiple times.


What is a dowhile statement in C programming?

"do statement while (...);" is a loop which does at least one iteration even if the condition after while is false. When, for instance, "while(...) statement" does not iterate at all if the condition after while is false.


What is a do while statement in c plus plus?

A do-while statement is a type of loop that iterates while a condition remains true. The condition is evaluated at the end of each iteration, thus the statement always executes at least once. do { statement; } while (expression);


What is the purpose of for statement differ from while statement?

conditin are given in for statement they check one time either it true or false and in while statement they check again and again untell the condition false.


Difference between for and while loop not in syntactically?

Well 'while' goes like this: while (condition) statement 'for': for (initialize; condition; after-each-loop) statement


Compare and contrast the IF single-selection statement and the while repetition statement?

The only difference is that an if statement will be evaluated at most one time and a while statement will be evaluated repeatedly until the loop condition evaluates to false.


Do while loop flowchart?

do <statement> { while (Boolean expression); }


What are the three looping statement in turbo C?

for,while,do while


Can you use conditional operator in cout statement?

Yes, but 'cout' is not a statement! Examples for statements: null-statement, block, expression, if-else, while, do-while, for, continue, switch, break, return.