for while and do while loop in c code example Example: whiel loop in C while (testExpression) { // statements inside the body of the loop }