This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.

24 lines
994 B
ObjectPascal
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

library events;
function event1(PlayerName:string;Окончание_А:string;Он_а_:string;Деньги:int64): int64;
begin
writeln(PlayerName, ' забыл', Окончание_А, ' про налог, и сейчас', Он_а_, 'платит штраф в размере 10500$');
result := Деньги - 10500;
writeln('У него сейчас ', result);
end;
function event2(PlayerName:string;Он_А_:string;Money:int64;Количествогроков:int64): int64;
begin
writeln('У игрока ', PlayerName, ' день рождения, все игроки делают', Он_А_, 'подарок');
result := Money + 2500;
if Количествогроков = 3 then
begin
result := result + 2500;
end;
if Количествогроков = 4 then
begin
result := result + 2500;
result := result + 2500;
end;
writeln('У ', PlayerName, ' стало ', Result, '$');
end;
end.