Const a=0; b=10;
var x,y,h:real; n,i:integer;
begin
h:=1;
n:=round((b-a)/h);
x:=a-h;
for i:=0 to n do
begin
x:=x+h;
y:=sin(x)/cos(x);
writeln(x:4:1,' ',y:6:3);
end;
end.
Результат:
0.0 0.000
1.0 1.557
2.0 -2.185
3.0 -0.143
4.0 1.158
5.0 -3.381
6.0 -0.291
7.0 0.871
8.0 -6.800
9.0 -0.452
10.0 0.648