Advertisement
LordDimon

Untitled

Apr 16th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.21 KB | None | 0 0
  1. Program Pas;
  2. Var
  3.   x, y : real;
  4. Begin
  5.   write('Введите x - ');
  6.   readln(x);
  7.   if (x<0) then y:= cos(x);
  8.   if ((x>=0) and (x<=Pi)) then y:=1;
  9.   if (x>Pi) then y:= sin(x)+1;
  10.  
  11.   writeln (y);
  12. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement