The if statement is the primary selection control statement PowerPoint PPT Presentation

presentation player overlay
1 / 1
About This Presentation
Transcript and Presenter's Notes

Title: The if statement is the primary selection control statement


1
The if statement is the primary selection control
statement
When condition is true, statement is executed,
otherwise control goes to next sequential
instruction.
Single alternative form if (condition)
statement
Double alternative form if (condition)
statement1 else statement2
When condition is true, statement1 is executed,
otherwise statement2 is executed.
Write a Comment
User Comments (0)
About PowerShow.com