Quipex

Второе

Apr 26th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.38 KB | None | 0 0
  1. Begin
  2.   var y, x, xn, xk, xd, a, b: double;
  3.   var i: integer;
  4.  
  5.   write('Vvedite cherez probel Xn, Xk, Xd, A, B: ');
  6.   readln(xn, xk, xd, a, b);
  7.  
  8.   x := xn;
  9.  
  10.   repeat
  11.   begin
  12.     if (x-a) < 0 then
  13.       y := 0
  14.     else
  15.       y := sin(x - b) - sqrt(x - a);
  16.      
  17.     writeln('Y = ', y:8:3,'    X = ', x:3:1);
  18.    
  19.     x := x + xd;
  20.   end;
  21.   until(x > xk)
  22. End.
Advertisement