blob: 60673c90002ded8c1c382237aca486f0e709b94e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
define age as integer and set it to 0
display "Enter your age: "
take user input for variable age
compare if age is equal to 1
display "First Birthday"
compare else if age is more than or equal to 12 OR less than or equal to 19
display "Teenager"
compare else if age is less than 12
display "Child"
compare else if age is more than 62
display "Senior"
else (used as catching anything else)
display "Adult"
|