Selection Statements
Selection Statements
1. Condition:
o A logical expression that evaluates to either true or false.
o Example: age >= 18 (checks if a person is 18 or older).
2. Action:
o The code that will be executed if the condition is true or false.
Condition:
You go to an ATM to withdraw money. The ATM will first check if you have
enough balance to withdraw. If you don't, it will show an error message.
Problem:
The ATM needs to decide whether to allow you to withdraw based on your
balance.
Condition:
Problem:
Conditions:
6. End: The process ends after determining whether the input year is a leap year or not.
11.
12.Raptor Flow chart to Find Square of an Integer