Есть ответ 👍

Написать программу, вычисляющую значение функции у = f(x). = x – 2, если x > 0; = 0, если x = 0; y = |x|, если x < 0.

178
376
Посмотреть ответы 3

Ответы на вопрос:

gera535
4,5(26 оценок)

Var   x,y: real; begin   read(x);   if x> 0 then y: =x-2   else       if x=0 then y: =0       else y: =abs(x);   writeln(y) end.

П0 x< 0 06 2 - с/п x=0 10 0 с/п |x| с/п
adv00
4,4(18 оценок)

var n: integer; a,b,c,d: integer; x,y,z: real; beginread(n); if n> 999 then begina: =n div 1000; b: =n mod 1000 div 100; c: =n mod 100 div 10; d: =n mod 10 div 1; x: =(a-b); y: =(b-c); z: =(c-d); if a> b then write(n*2) else if (x=y) and (y=z) then write ('arif posledovatelnost'); if (x< > y) and (y< > z) then write(n*2); endelse write('chislo ne 4 znachnoe'); end.

Популярно: Информатика