CanonSharp/OpenSet/21_while_if_test2.pas
jackfiled 89ce313b77 feat: CanonSharp Benchmark. (#4)
Reviewed-on: https://git.bupt-hpc.cn/jackfiled/CanonSharp/pulls/4
Co-authored-by: jackfiled <xcrenchangjun@outlook.com>
Co-committed-by: jackfiled <xcrenchangjun@outlook.com>
2024-08-19 14:37:34 +08:00

25 lines
313 B
ObjectPascal

program main;
var ret: integer;
function ifWhile: integer;
var a,b: integer;
begin
a := 0;
b := 1;
if (a = 5) then
begin
for b := 1 to 3 do
begin
end;
b := b + 25;
ifWhile := b;
end
else
for a := 0 to 4 do
b := b * 2;
ifWhile := b;
end;
begin
write(ifWhile());
end.