Ребят помогите переделать программу Паскаль в СИ
program lab3;
var x,y,a,b,xk,xn, dx:real;
begin
a:=1.4;
b:=2.5;
write(' vvedite xn, xk, dx=');
readln(xn, xk, dx);
x:=xn;
writeln('tabl');
writeln('┌─────┬─────┐');
writeln('│ x │ y │');
while x<=xk do
begin
y:=(ln(a*x*x+b))/(a*x+1);
writeln('├─────┼─────┤');
writeln('│',x:5:2,'│',y:5:2,'│');
x:=x+dx;
end;
writeln('└─────┴─────┘');
readln;
end.
Answers & Comments
using namespace std;
int main(){ setlocale(0, ""); double x, y, a, b, xk, xn, dx; a = 1.4; b = 2.5; cout << "Ââåäèòå xn,xk, dx = " << endl; cin >> xn; cin >> xk; cin >> dx; x = xn; cout << "Tabl" << endl; cout << "+-----------+" << endl; cout << "¦ x ¦ y ¦" << endl; while (x <= xk) { y = (log10(a*x*x+b))/(a*x+1); cout << "+-----+-----¦" << endl; cout.setf(ios::fixed); cout.precision(3); cout << "¦" << x << "¦"<< y << "¦" << endl; x = x + dx; } cout << "+-----------+"; system("pause");}