Computer Science, asked by MeghaLakshmiB, 10 months ago

09
Write the java expression for
Root of (a+b)^3/(a-b). ​

Answers

Answered by Anonymous
7

{

z=sqrt((a+b)paw(3)/(a-b));

system.out.println(z);

}

Answered by ridhimakh1219
7

Write the java expression for  Root of (a+b)^3/(a-b). ​

Explanation:

Java program to calculate value of expression of square root of  (a+b)^3/(a-b). ​

import java.lang.*;

public class Main

{

public static void main(String[] args) {

double a=10.0, b=5.0;

       double res;

       res = + Math.sqrt(Math.pow(a+b,3)/(a-b));

       System.out.println("Result of expression "+res);

}

}

Output

Result of expression 25.98076211353316

Note

The package java.lang.Math.pow(double a, double b) in java will return the value of the first parameter passed raised to the power of the second parameter passed.

Similar questions