import java.util.*;
class math{
public static void main(String args[]){
double a,b,c;
double r1,r2;
Scanner input=new scanner(System.in);
System.out.print("entera");
a=input.nextDouble();
System.out.print("enter b");
b=input.nextDouble();
System.out.print("enter c");
c=input.nextDouble();
r1=(-1*b+Math.sqrt(b*b-4*a*c))/(2*a);
r2=(-1*b+Math.sqrt(b*b-4*a*c))/(2*a);
System.out.print("the first rooot is %f and the secong root is %f",r1,r2);
}السلام عليكم
هادا كود للقانون العام للجذر التربيعي ، المشكلة فيه انهعم يحكيلي
cannt find symbol method print(java.lang.string,double)
فهل لازم نكتب البكج ونستدعيها في بداية البرنامجj
ولا لاءjava .lang
يا ريت تفودني