Hello friends!!!!!

Loops in C

C LANGUAGE

10/11/20241 min read

The looping can be defined as the repeating the same process multiple times until a specific condition satisfies. There are three types of loops used in the C language.

The looping simplifies the complex problems into the easy ones. It enables us to alter the flow of the program so that instead of writing the same code again and again, we can repeat the same code for a finite number of times. For example, if we need to print the first 50 numbers then, instead of using the printf statement 50 times we can print in a loop which runs up to 50 times.

Types of loops:

  • do while

  • while

  • for