In this pseudocode we will check if age entered by the user is of a senior citizen or not. A person is a senior citizen if his age is above 60 years old.
If you follow the sequence of pseudocode, you will see that the program makes a “selection” of which flow to enter depending on the age defined in the program.
If the age is more than or equal to 60, the program enters the if block. If the age is less than 60, the program enters else block.
int age = 61;
if (age>=60)
print(“Person is a senior citizen”);
else
print(“Person is not a senior citizen”);