RosettaCodeData/Task/Conditional-structures/Maple/conditional-structures-1.maple

6 lines
54 B
Plaintext

if x > 0 then
res := x;
else
res := -x;
end if;