Write a program that, by the age entered, determines whether a person is a hero of the day

Write a program that, by the age entered, determines whether a person is a hero of the day (ends in 5 or 0, for example, 20 years old or 55 years old)

The program uses the following condition: if a person’s age is divided entirely by 5 or 10, then this person is a hero of the day, otherwise – not a hero of the day.

program age;
var n: integer;

begin
writeln (‘Enter age’);
readln (n);

if ((n mod 5 = 0) or (n mod 10 = 0)) then writeln (‘A person of this age is a hero of the day’)
else writeln (‘A person of this age is not yet a hero of the day’)

end.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.