Advertisement
nikitaxe132

Untitled

Sep 26th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.39 KB | None | 0 0
  1. program Project1;
  2. uses
  3.   System.SysUtils;
  4. var
  5.    A, X, B, C, D, E, X1, X2, I: Integer;
  6.    Y, Max: Real;
  7. begin
  8.    WriteLn('Введите через пробел a, b, c, d, e, x1, x2');
  9.    Readln(A, B, C, D, E, X1, X2);
  10.    for I := X1 to X2 do
  11.    begin
  12.       Y := (A * X * X + B * X + C) / (D * X + E);
  13.       if (Max <= Y) then Max := Y;
  14.    end;
  15.    WriteLn(Max:8:2);
  16.    readln;
  17. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement