Page 6 - LN
P. 6
Lesson Note
Q.
Multiple conditions checking → to categorise a person as either child (<13), teenager (>=13 but <20)
or adult (>=20),based on age specified:
Identify IPO:
• Input: Age
• Process: Check Age as per the given criteria
• Output: Print either “Child”, “Teenager”,
“Adult”
Pseudocode:
INPUT Age
if Age < 13 then
PRINT "Child"
else if Age < 20 then
PRINT "Teenager"
else
PRINT "Adult"
Repetition
Consider some examples like:
• Walk 50 steps then turn right
• Clap your hands five times
• Walk 10 steps ahead
• Jump on the spot till you get tired
This kind of statements need repetition of same set of task again and again. In programming,
repetition is also known as iteration or loop. A loop in an algorithm means execution of some
program statements repeatedly till some specified
condition is satisfied.

