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

1 / 1
About This Presentation
Title:

The if statement is the primary selection control statement

Description:

A selection control structure is one that chooses among alternative statements ... Truth table for a disjunction: OR statement. OR T F. T. F. T T. T. F ... – PowerPoint PPT presentation

Number of Views:15
Avg rating:3.0/5.0
Slides: 2
Provided by: tcnj
Category:

less

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