18 day


We will continue learning about A Loops

do…while Loop in C

The do…while in C is a loop statement used to repeat some part of the code till the given condition is fulfilled. It is a form of an exit-controlled or post-tested loop where the test condition is checked after executing the body of the loop. Due to this, the statements in the do…while loop will always be executed at least once no matter what the condition is.


Syntax of do…while Loop in C
do {
 
    // body of do-while loop    
    
} while (condition);

https://www.youtube.com/watch?v=AQd2PEo6utc&list=PLfgCIULRQavzxY-IO2sO5Vj5x7C_tjW3R&index=14

Comments

Popular posts from this blog