REVISING QUADRATIC EQUATIONS, I cannot understand why all test cases are not passed

this is the code

import java.util.;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
int d=0;
d=(b
b)-(4ac);
if(d>0)
{
System.out.println(“Real and distinct”);
}
else if(d==0)
{
System.out.println(“Real and equal”);
}
else if(d<0)
{
System.out.println(“Imaginary”);
}
int x1=0,x2=0;
if(d>=0)
{
x1=((-1b)+(int)Math.pow((bb-4ac),0.5))/(2a);
x2=((-1
b)-(int)Math.pow((bb-4ac),0.5))/(2a);
System.out.print(x1+"\t");
System.out.print(x2);
}
}
}

There two problems that I can notice in your code.
1] You need to print the roots in increasing order.
2] The roots may have a double value but you are using an int variable for both the roots.

Sir I have made the change in program but still all test cases are not passed, can you please help me by correcting me where my code is going wrong??

Please post the link to the code?

Sir can you please tell me how to generate ide of the code??

I’ve sent you message in your inbox. Please check.

Yes Sir I have seen the message. After writing the code on coding blocks ide, then on pressing Ctrl+S it is being saved as html file in D drive.When I am copying the link of webpage url then coding blocks ide without my code is opening. This is the problem I am facing. Can I send you the code in your mail id??

No problem. Just paste the code over here.

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.

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.