Looping Statements
,Introduction
• The statements which helps to execute set of statements repeate
for sometime or until a condition is satisfied is called Looping
statements.
• They are also called Iterative statements.
• Loops are used to execute one or more statements repeatedly
• Let us consider if you want to print hello message for 20 times,
then it’s not possible to write printf for 20 times. So, then we can
make use of looping statements.
,Looping Statement
Example:
Playing Favourite Song in a repeat mode
, Classification
1. Pre-Test Loop
2. Post-Test Loop
Execution of body of loop we call as iteration of the loop
,Introduction
• The statements which helps to execute set of statements repeate
for sometime or until a condition is satisfied is called Looping
statements.
• They are also called Iterative statements.
• Loops are used to execute one or more statements repeatedly
• Let us consider if you want to print hello message for 20 times,
then it’s not possible to write printf for 20 times. So, then we can
make use of looping statements.
,Looping Statement
Example:
Playing Favourite Song in a repeat mode
, Classification
1. Pre-Test Loop
2. Post-Test Loop
Execution of body of loop we call as iteration of the loop