Белый Тём4ик
Профи
(580)
9 часов назад
+-------+
| Начало |
+-------+
|
v
+---------+
| Z := 0 |
+---------+
|
v
+------------------+
| A > 0 и B > 0? |
+------------------+
/ \\
да нет
/ \\
v v
+----------------------+ +------------------------+
| Z := SQRT(A + B) | | Z := SQR(A) + SQR(B) |
+----------------------+ +------------------------+
| |
v v
+---------------------------+
| Write (Z = , Z:2:3) |
+---------------------------+
|
v
+-------+
| Конец |
+-------+
Z: = 0:
IF A > 0 and B > 0 then Z:= SQRT(A+B) else Z: = SQR(A) + SQR(B) ;
Write (Z= ,Z:2:3)