write the java expressions
Attachments:
Answers
Answered by
0
Answer:
import java.lang.Math
class funct{
public static void main(String args[ ])
{
Scanner sc= new Scanner (System.in)
double a,b,x;
System.out.println("Enter the value of a :");
a=sc.nextDouble();
System.out.println("Enter the value of b :");
b=sc.nextDouble();
System.out.println("Enter the value of c :");
x=sc.nextDouble();
result= ((Math.sqrt(a*x)+(x*x))/(a+b);
System.out.println("Result="+result);
}
}
Explanation:
i simple use sqrt() function in Math package, and just do the all process as it is... :)
Answered by
3
Similar questions