Presentation is loading. Please wait.

Presentation is loading. Please wait.

Program Flow Control Selection & repetition

Similar presentations


Presentation on theme: "Program Flow Control Selection & repetition"— Presentation transcript:

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

3

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

7

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)

16

17

18


Download ppt "Program Flow Control Selection & repetition"

Similar presentations


Ads by Google