Revising Quadratic Equations

import java.util.Scanner;
import java.lang.Math;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
// axx + bx + c
int a =sc.nextInt();
int b =sc.nextInt();
int c =sc.nextInt();
int d = b
b - 4ac;// Discriminant
int r1 ,r2;
if(d<0)
System.out.print(“Roots are Imaginary”);
else if(d>0)
{
System.out.print("Real and Distinct \n “);
r1 = ((0-b + (int)(Math.sqrt(d)))/(2a));
r2 = ((0-b - (int)(Math.sqrt(d)))/(2
a));
System.out.print(r1+” ");
System.out.print(r2);
}
else
{
System.out.print(“Real and Equal \n”);
r1 = (0-b)/(2*a);
System.out.print(r1);
}
}
}
// Please tell the error in the code

hi @mananaroramail,
Minor output bugsfixed … code at - https://ide.codingblocks.com/s/136610

What was the error?
Did you make any changes??

Ofcourse i made changes but not logical … And what is this 0-b you have written in your code … and 2a is not correct format it is 2*a. And there were some ordering changes too.