I have designed an age calculator which given a person's age, works out given a person's age, works out how many days they have lived for, and how many hours they have lived for.
My answer:
var
age, month, day, hour: integer;
begin
writeln ('How old are you?');
readln (age);
writeln ('Please enter the number of months since your last birthday.');
readln (months);
days:=age*365+months*30;
hours:=days*24;
writeln ('Your age in days is ', days,' ,');
writeln ('Your age in hours is ', hours,' ,');
sleep (50000);
end.
My question is: what is the meaning of the comma and delimiter in the red colour? It is because I usually forget to put comma and/or delimiter in this circumstance.
Cheers,