import java.io.*;
public class roots
{
public static void main
(String args
[]) {
int a,b,c;
double r1,r2;
try{
System.
out.
println("input values of a quadratic equation");
System.
out.
println("value of a");
System.
out.
println("value of b");
System.
out.
println("value of c");
r1=
(-1)*b +
Math.
sqrt(Math.
pow(b,
2)-4*a*c
);
r2=
(-1)*b -
Math.
sqrt(Math.
pow(b,
2)-4*a*c
);
System.
out.
println("roots:"+r1 +
","+r2
);
}
{}
}
}