lesson-Multiple

Views:
 
Category: Education
     
 

Presentation Description

No description available.

Comments

Presentation Transcript

Multiple If – Then- Else:

Multiple If – Then- Else

PowerPoint Presentation:

The syntax for Multiple If-Then-Else:

PowerPoint Presentation:

If condition [ Then ] [ statements ] ElseIf elseif condition [ Then ] [ elseif statements ] ] Else [ else statements ] ] End If

PowerPoint Presentation:

If grade >= 85 And grade <= 100 Then Text2.Text = "Stay in Cal Sci " ElseIf grade >= 70 And grade <= 84 Then Text2.Text = "Hello Cal High" ElseIf grade = 0 Then Text2.Text = "dropped" Else Text2.Text = "invalid input" End If Example:

PowerPoint Presentation:

if ( condition1 ) statement1 ; else if ( condition2 ) statement2 ; . . . else if ( condition-n ) statement-n ; else statement-e ; Nested statement in C++:

authorStream Live Help