Hello friends!!!!!
while loop in C
C LANGUAGE
10/13/20241 min read
while loop in C
The while loop in C is to be used in the scenario where we don't know the number of iterations in advance. The block of statements is executed in the while loop until the condition is specified in the while loop is satisfied. It is also called a pre-tested loop.
The syntax of the while loop in c language is given below:
while(condition) {
//code to be executed
}