Please correctmy code still 2 test case afre not passed

import java.util.;
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=b
b-4ac;
if(d==0){
double x=(-b+Math.sqrt(d))/(2a);
double y=(-b-Math.sqrt(d))/(2
a);
System.out.println(“Real and Equal”);
System.out.println(Math.round(x));

	}
	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(Math.round(x)+" "+Math.round(y));

	}
    if(d<0){
        System.out.println("Imaginary");
    }

}

}

Hi @Anshuman-Behera-1168641663271515,you have to type cast the roots into int.There was no need to use Math.round() function.Also you have to take all a,b,c in integer only.
I have made the required changes in your code.You can check them:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.