Featured
-
No Featured Found!
Tags
Loops in C
Loops are used to execute a block of statements in repetition until a specific condition is satisfied.
There are 3 types of loops in C:
1. for loop
2. while loop
3. do while loop
1. for Loop:
Syntax...
C Loops Syntax
C provides following types of loops:
for loop.
while loop.
do-while loop.
nested loop.
For Loop :
Syntax:
for( initialization; condition; increment/decrement) {
// Statement1
//Statement2
...