Advertisement
Sauka1337

Untitled

Sep 25th, 2023
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.41 KB | None | 0 0
  1. program var_27_task_1;
  2.  
  3. {$APPTYPE CONSOLE}
  4.  
  5. {$R *.res}
  6.  
  7. uses
  8.     System.SysUtils, Math;
  9.  
  10. var
  11.     I : Integer;
  12.     MaxValue, Y : Real;
  13.  
  14. begin
  15.     for I := 1 to 3 do
  16.         Y := Sin((I*PI*5)/180);
  17.         if Y>=MaxValue then
  18.             begin
  19.                 MaxValue := Y;
  20.             end;
  21.     WriteLn('Biggest f(x) value = ', MaxValue);
  22.     Writeln('Press <enter> to quit...');
  23.     Readln;
  24. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement