mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 21:48:01 +02:00
25 lines
292 B
ObjectPascal
25 lines
292 B
ObjectPascal
program Project1;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
uses
|
|
math, sysutils;
|
|
var
|
|
a,b: double;
|
|
begin
|
|
a := 0;
|
|
b := -3;
|
|
try
|
|
try
|
|
writeln(power(a,b));
|
|
except
|
|
on e: EZeroDivide do begin
|
|
writeln(Infinity);
|
|
end;
|
|
end;
|
|
except
|
|
halt(1);
|
|
end;
|
|
writeln('ok');
|
|
end.
|