Looping Statements in C
Looping Statements in C
STATEMENTS
IN C
OVERVIEW
In C, looping statements allows the
user to execute a block of code
repeatedly based on a specified
condition. They play a crucial role in
automating repetitive tasks, making
code more efficient and reducing
redundancy. We can nest loops within
each other for more complex
iterations. There are three primary
types of loops: ‘for’, ‘while’, and ‘do
while’. Each of these serves a
LOOP FUNCTION SYNTAX
for is typically used
when the number of
for(initailization;con
dition;i++/i--)
{
iterations is known //statements;
in advance. }