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

11 lines
149 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.