RosettaCodeData/Task/Conditional-structures/Maple/conditional-structures-2.maple
2023-07-01 13:44:08 -04:00

7 lines
94 B
Text

if x = 0 then
res := y;
elif y = 0 then
res := x;
else
res := sqrt(x^2+y^2);
end if;