Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Im suppose to do a quadratic equation using Pascal, im using a online Pascal com

ID: 3733406 • Letter: I

Question

Im suppose to do a quadratic equation using Pascal, im using a online Pascal compiler and it keeps saying "/usr/bin/ld: warning: link.res contains output sections; did you forget -T?" this is the website im using: https://www.jdoodle.com/execute-pascal-online

The code is below:

program quadratic;

var a,b,c : real;

delta, x1, x2 : real;

  

begin

writeln('Provide equation data: ');

write( 'A='); readln(a);

write( 'B='); readln(b);

write( 'C='); readln(c);

  

delta:= sqr(b)-4*a*c;

  

if delta<0 then

writeln( 'No real roots')

else

if delta=0 then

begin

x1:=-b/(2*a);

write( 'Equation has one root: ' ,x1);

end

else

begin

x1:=(-b-sqrt(delta))/(2*a);

x2:=(-b+sqrt(delta))/(2*a);

write('Roots: X1=' ,x1, ' X2+' ,x2);

end;

readln;

end.

Explanation / Answer

You can ignore that line as it is just aa warning probably because of some system problem that jdoodle is using and your code is giving the result a line before this warning so you don't need to worry about your code.