code i have written :import java.util.;
import java.lang.Math;
public class Main {
public static void main(String args[]) {
Scanner scn=new Scanner(System.in);
float a =scn.nextInt();
float b =scn.nextInt();
float c =scn.nextInt();
float d;
d=bb-4ac;
if(d==0){
double x=(-b+Math.sqrt(d))/2a;
double y=(-b+Math.sqrt(d))/2a;
System.out.println(“real and equal”);
System.out.println(x+" "+y);
}
if(d>0){
double x=(-b+Math.sqrt(d))/2*a;
double y=(-b+Math.sqrt(d))/2*a;
System.out.println("real and distinct");
System.out.println(x+" "+y);
}
if(d<0){
System.out.println("imaginary");
}
}
}
this code passes only one test case.please check the output format if it is correct or not.