Revising Quadratic Equations Question

import java.util.Scanner;

public class Main

{
public static void main(String[] args) {

Scanner sc=new Scanner(System.in);

double a=sc.nextDouble();

double b=sc.nextDouble();

double c=sc.nextDouble();

double x= Math.sqrt((b*b-4*a*c));
int i=(int)x;
if(i>0){
double F1=((-b+x)/2*a);
double F2=((-b-x)/2*a);
if(F1 == F2){
    System.out.println("Real and Equal");
     System.out.print((int)F1);
     System.out.print("\t");
     System.out.print((int)F1);
     
}
else if(F1>F2){
    System.out.println("Real and Distinct");
    System.out.print((int)F2);
     System.out.print("\t");
     System.out.print((int)F1);
    
}

else if(F2>F1){
    System.out.println("Real and Distinct");
    System.out.print((int)F1);
     System.out.print("\t");
     System.out.print((int)F2);
    
}


}

}

}

My Code is not able to pass later 2 Test Cases Please help me with this as what i am missing in it?

Please share your latest code through the online ide (https://ide.codingblocks.com)

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.

Sir how to share my code?I have it in ide but how to share it is there any specific ID of yours ?

Choose the language, copy your code on https://ide.codingblocks.com, then click on file and on save.
You can then share the corresponding url with me here. :slight_smile: