mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 16:47:53 +02:00
18 lines
219 B
ObjectPascal
18 lines
219 B
ObjectPascal
{$mode delphi}
|
|
|
|
Function Test(S : single) : single;
|
|
begin
|
|
Result := sqrt(s);
|
|
end;
|
|
|
|
Function Test2(S : single) : single;
|
|
begin
|
|
Result := sqr(s);
|
|
end;
|
|
|
|
begin
|
|
writeln(Test(0.123445));
|
|
writeln(Test2(0.123445));
|
|
end.
|
|
|