Download presentation
Presentation is loading. Please wait.
1
Program Flow Control Selection & repetition
Unti-3 Program Flow Control Selection & repetition
2
In this unit we will learn the following
Understand if-else statement Program flow control repetition
4
Activity
5
1. If else Statement
6
If-else Statement used to evaluate two statements.
If –else Statements If-else Statement used to evaluate two statements. Is A > B ? Yes No Print a is greater Print b is greater
8
Programming If –else Statements
9
Page 91- Activity (a)
10
Page 92- Activity (b)
11
2. elif Statements
12
Discuss : Traffic Signals Conditions
Ask them what they think of the if statment
13
True or False or maybe something in between ?
If statement explained , let them brain storm their ideas about if statement
14
The elif Statement The elif statement combines the else and if and allows us to add more than one conditional statement
15
Activity – 95 (a)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.