Code
Program Num2;
Uses CRT;
Var a, b: Real;
h: Real;
x, y: Real;
Function F(x: Real):Real;
Begin
F := 2 * sin(x) * sin(x) + 1;
End;
Begin
ClrScr;
Write('Enter [A]: '); Readln(a);
Write('Enter [B]: '); Readln(b);
Write('Enter [H]: '); Readln(h);
if (((a > b) and (h > 0)) or
((a < b) and (h < 0))) then
Begin
Writeln('WRONG DIAPAZON');
ReadKey;
Exit;
End;
x := a;
Repeat
Writeln(x:4:4,' -> ',F(x):4:4);
x := x + h;
Until (((x > b) and (h > 0)) or ((x < b) and (h < 0)));
ReadKey;
End.