Ответы
Ответ дал:
0
Программа на паскале:
var x,y,v:real;
begin
readln(x,y);
if x>1
then if y>1 then v:=x+y else v:=x-y
else if y>0 then v:=-x+y else v:=-x-y;
writeln('v = ',v);
end.
Пример:
5 -1
v = 6
var x,y,v:real;
begin
readln(x,y);
if x>1
then if y>1 then v:=x+y else v:=x-y
else if y>0 then v:=-x+y else v:=-x-y;
writeln('v = ',v);
end.
Пример:
5 -1
v = 6
Вас заинтересует
2 года назад
7 лет назад
7 лет назад
9 лет назад
9 лет назад
9 лет назад