(a + b) ^n convert into Java expression
Answers
Answered by
1
Answer:
Math.pow((a+b),n)
MARK AS BRAINLIEST!!!!
Answered by
1
Math.pow((a+b),n) is a java expression for the above.
Step-by-step explanation:
- The pow function is a function of Math class in java, so when a user wants to use the pow function, then he needs to use the "import java.lang.Math;" in the program.
- It is because, this will help the compiler to tell about the pow function which is used to find the power of any number whose syntax is Math.pow( first_number, second_number ).
- The above question wants an expression that will calculate the n power of (a+b), so the expression is "Math.pow((a+b),n)", where a,b and n is a variable whose value must be defined.
Learn More :
- Java : https://brainly.in/question/13792074
Similar questions