aboutsummaryrefslogtreecommitdiff
path: root/cst116-Ch7-Pearse-Pseudocode.txt
blob: c6d3b552f8b1f25fc1dbd930b8df76c049199fcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
main(){
	int age
	
	print("Enter your age:")
	input(age)

	if (age == 1){
		print("First Birthday")
	}
	elif (age >= 12 && age <= 19){
		print("Teenager")
	}
	elif (age < 12){
		print("Child")
	}
	elif (age > 62){
		print("Senior")
	}
	else{
		print("Adult")
	}
}