C do while loop

This is equivalent to a while loop, but it has test condition at the end of the loop. It is an exit-control loop. The Do while loop will always execute at least once during the execution of a program. And it keeps executing the block until the condition state is false.

Syntax:

Example:

Output