Бір шартты оператор түріндегі функцияны есептеудің дұрыс жазылуын көрсет:  y={cos(2x), егер 0<x<2  болса  {1-sin(3x)   әйтпесе

1  if (0<x) or (x<2) then y:= cos(x) else y:= 1- sin(x);
2  if (0<x) and (x<2) then y:= cos(2*x) else y:= 1- sin(3*x);
3  if (0<x) and (x<2) then y:= cos(2x) else y:= 1- sin(3x);
4  if (0<x<2)  then y:= cos(x) else y:= 1- sin(x);
5  if (0<x) and (x<2) then y:= cos(2*x) else y:= 1-3* sin(x);