Canon/open_set/23_op_priority1.pas

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