Math, asked by shannelleeb, 15 hours ago

Write an Algorithm to calculate the age of a person, given their birth year

Answers

Answered by djp61825
3

Answer:

Step-by-step explanation:

Accept birth year.

set n to 0.

Loop while birth year not = current year.

   if birthyear = current year

         n = current year - birth year

         print  ' Persons age = n '

   else

         add 1 to birth year

end loop

       

Similar questions