Computer Science, asked by tanyavarshney15, 1 month ago

what is the value of:
(Math. abs(-1)+Math. pow(2,3)) ?​

Answers

Answered by BrainlyProgrammer
11

Answer:

 \begin{gathered} \tt \orange{(Math. abs(-1)+Math. pow(2,3))} \\  :  \implies 1 + 8 \\  :  \implies \boxed{ \underline{ \green{ \: 9 \:} }} \end{gathered}

Explanation:

  • abs() returns absolute value of a number
  • pow() returns a number raised to power other number.
Answered by purveshKolhe
2

\huge{ \green{ \boxed{ \red{ \mathfrak{answer \: : }}}}}

Full code::

public class Brainly {

public static void main(String [] args) {

System.out.println(Math.abs(-1) + Math.pow(2, 3));

}

}

Output::

9

Logic::

==> There were two functions in the question -- Math.abs(), Math.pow().

==>Math.abs() returns the absolute number and Math.pow() raises the power of one number to the another.

Hope This Helps You..

Similar questions