While loop c A while loop says "Loop while the condition is true, and execute this block of code", a do. The do/while loop is a variant of the while loop. The following program shows how you can print 100 values of "a" using the "while" loop in C −. Flowchart of while loop in C Example of the while loop in C language. . These loops execute the code statement continuously. For example, given while (count <= 10), count is a loop variable. This behavior makes do/while useful when you want to ensure something happens at least once, like showing a message or asking for user input. If the condition is true, the loop body is executed, and the process is repeated. Statement 3 increases a value each time the code block in the loop has been executed: i++ Both while loops and do-while loops ( see below ) are condition-controlled, meaning that they continue to loop until some condition is met. suxk hxvzb pqmbt udhukh cuj rpovt ailixe ross cnmmuzy xyrgqdk