for loop A for loop is used to execute a set of statements for a fixed number of times. It takes the following form: for (initialization; condition; update) { statements; } The for loop defines three types of statements separated with semicolons ( ; ), as follows: Initialization statements TerminationContinue Reading

Loop:- The process of repeated executing a block of statements is called loop. C supports three types of looping statements.  They are… While Loop do-while loop and for-loop             Any loop has three things. They are… Initialize the index Test condition Update the index 1. while loop:- It is a conditionalContinue Reading