Loops in C Programming

In a programming often a situation may comes where we want to  execute the set of code again and again.

Loop has a ability to repeat set of statement until a condition to be satisfied or a particular number of times. There are following types of  loop in C language:

In a C programming language we can also define a loop within another loop.

  • while loop
  • do…while loop
  • for loop
  • nested loops