PHP for and foreach loop statement

It is used when one knows how many time one need to run the particular loop. It is also of two types: 1. PHP for loop statement Loop back again and again through specified time duration. Read More PHP while loop PHP do while loop PHP for loop syntax:

Example: PHP for loop example … Read more

For Loop in C programming with examples

For loop in C programming is a statement to repeat the set of statements until a condition to be satisfied. Syntax of for loop statement: for(initialization; conditionCheck; updation ) { statement 1; statement 2; ————– } “for-statement” has a initialization , condition and iteration (increment/ decrement) part separated by semicolon. Initialization : This phase allows … Read more