without taking into account the months involved, just subtract the birth year from the current year to get the age.
read current,birth
print current-birth
You might want to pretty it up to print prompts and label the output, but you didn't say that. Now is the time to learn that computers do exactly (and ONLY) what you tell them to do.
Draw a flowchart or write pseudo code to represent the logic of a program that allows the user to enter values for the current year and the user’s birth year. The program outputs the age of the user this year.
Preferably a pseudocode
1 answer