While loop is also known as pre-tested loop. In while loop has one control condition and they can execute as long they can condition is true. In the condition of the loop is tested before the body of the loop is executed.
Syntax of the while loop in C language
//code to be executed
Example of the while loop in C language