Selection
Site: | منصة الحسن للتعلم |
Course: | Structured Programming |
Book: | Selection |
Printed by: | Guest user |
Date: | Thursday, 16 October 2025, 9:49 AM |
Description
Objectives
- Control structures
- Sequence structures
- Selection structures (if selection statement and if…else selection statement)
- The switch selection statement;
- The logical operators to form complex conditional expressions in control statements;
- To avoid confusing the equality and assignment operators
Logical Operatores
If- Statement
Switch Statment
Example
Set of Examples
Weather Checker
Max of 2 integers
Absolute Value
Sort 3 Numbers
Simple Restaurant
menu-based calculator
Sphere
Character type
Substances detection
Nnumber to words