August 2022 1 21 Report
Задание нужно выполнить в Паскале используя оператор цикла с параметром (for).
Делал сам, но вышло криво:

var a, b, h, x, f, xi, yi: real;
n, i: integer;
Begin
write('a=');
read(a);
write('b=');
read(b);
write('n=');
read(n);
for var i := 1 to 10 do
writeln(i);

h:=(b-a)/n;
writeln('h=', h);
f:=(sqr(x)+1)*cos(x);
xi:=a+i*h;
writeln('xi=',xi);
yi:=xi;
writeln('yi=',yi);
writeln('f=', f);
End.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.