Loop is an important part or feature of any programming language .loops are designed to perform a particular task multiple times in order to perform a particular task multiple times in order to perform a loop we require following three parts.
Assignment is a simple statement where we assign value to a variable. For Example a=5.
It is a conditional statement that checks for continuation or termination of loop for example a<=100.
These are the operators that increase or decrease the values of the looping variables for example a++.
Note-:Assignment is often called as base value because loop starts from this value and condition is calle peak value because loop teminates here.
Following are the three standard loops use in C language.
The for loop
The while loop
The do while loop
The for loop is one of the simplest loop this is because all the three parts of a loop are written along side,seperated by semicolan(;).