1 câu trả lời
a)
if (x * x + y * y <= 1) then z := x * x + y * y;
if (x * x + y * y > 1) and (y >= x) then z := x + y;
if (x * x + y * y > 1) and (y < x) then z := 0.5
b)
if sqrt(sqr(x - a) + sqr(y - b)) <= r then
z := abs(x) + abs(y) else z := x + y;