Computer Science, asked by ayushi445730, 10 months ago

write the java expressions ​

Attachments:

Answers

Answered by DataKing
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 Oreki
3

\textsf{\large Given Expression:}

     \frac{\sqrt{3x} \: + \: x^2}{a \: + \: b}

\textsf{\large Java Expression:}

     \texttt{(Math.sqrt(3 * x) + x * x) / (a + b);}

Similar questions