C Loops in C Language

Loops in C Lanugage

In any programming language, loops are used to execute a set of statements repeatedly until a particular condition is satisfied.

How it Works looping

A sequence of statements are executed until a specified condition is true.
This sequence of statements to be executed is kept inside the curly braces { } known as the Loop body.
After every execution of loop body, condition is verified, and if it is found to be true the loop body is executed again.
When the condition check returns false, the loop body is not executed.

There are 3 type of Loops in C language

  • for loop
  • while loop
  • do while loop

Share This Page on:


Ask Question