Revising quadratic equation not resolved by mistake it clicked

import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn=new Scanner(System.in);
int a=scn.nextInt();
int b=scn.nextInt();
int c=scn.nextInt();
int x,y;
if(((bb)-(4a*c))>0)

     {  x=((-b)+((b*b)-(4*a*c)))/(2*a);
         y=((-b)-((b*b)-(4*a*c)))/(2*a);
         System.out.println("roots are real and distinct");
         
         System.out.print(x +" ");
         System.out.println(   y);
     }  
       else if(((b*b)-(4*a*c))>=0)
       { System.out.println("roots are real and equal");
        x=(-b)/(2*a);
        y=(-b)/(2*a);
         System.out.print(x +" ");
          System.out.println(y);
       } 
        else
        { System.out.println("roots are imaginary");
          System.out.println("complex roots");
        }




    

}

}

how to find square root of number

how to find squareroot of number using logic

Use inbuilt Math.sqrt();
if it helps please mark the doubt as resolved.

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.