While loop in C++ - General Pleasure

My dedication is to show general knowledge such as health, technology, resorts, cleanliness, popularity of traditional ways, how to make money online, and how to agree, publish our site, and up-to-date tutorials such as Excel, HTML, Powerpoint . we try to find good tips to show you, If you have any questions, please contact us my by e-mail Thank you for coming to our site. Thank you.

Home Top Ad

RESPONSIVE ADS HERE

Post Top Ad

Your Ad Spot

Tuesday, June 9, 2020

While loop in C++

While Loop Statement 


A while loop statement repeatedly executes a target statement as long as a given condition is true.

Syntax:

While (Condition){

Statements(s);

}

Here, statement(s) may be a single statement or a block of statements. The condition may be any expression, and true is any non-zero value. The loop iterates while the condition is true.

When the condition becomes false, program control passes to the line immediately following the loop.

Flow Diagram









Watch My Video 



Post Top Ad

Your Ad Spot