Canon/open_set/24_op_priority2.pas

11 lines
153 B
ObjectPascal
Raw Normal View History

2024-03-09 20:11:27 +08:00
{ 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.