blob: 12721a788659337add145c68d2892eefda281151 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Set DAYS_PER_YEAR equal to 365
Declare functions
Start main function
Set age equal to 0
Set days equal to 0
Run GetAge function
Print "Please enter your age: "
Input age
Set age equal to input value
Run CalcDays function
Give age the alias "years"
Set days equal to years multiplied by DAYS_PER_YEAR
Set days equal to result
Run PrintResults
Print age and "! Boy are you old!"
Print "Did you know that you are at least " days " days old?"
|