Canon/open_set/24_op_priority2.pas
2024-03-09 20:11:27 +08:00

11 lines
153 B
ObjectPascal

{ test the priority of add and mul }
program main;
var a,b,c,d: integer;
begin
a := 10;
b := 4;
c := 2;
d := 2;
write((c + a) * (b - d));
end.