First page Back Continue Last page Overview Image
“while” loop in C
- The “while” loop executes the code block “block” as long as the conditional statement “condition” is true, in this case the loop is denoted as a pre-tested loop (the condition encircles the code block).
- The syntax of while loop in c language is given below :
variable-initialisation;
while (condition) {
block;
}