Answer and Explanation:
class Dis
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter values for a,b,c");
double a=sc.nextDouble();
double b=sc.nextDouble();
double c=sc.nextDouble();
String s=discriminant(a,b,c);
System.out.println(s);
}
public String discriminant(double a, double b, double c)
{
double result;
result=();
if(result<0)
return "no real solutions"";
else return "";
}
}
Note:This program is written in JAVA