Computer Science, asked by Anonymous, 7 months ago

Write expression for |a 2 -2| in java.Write expression for |a 2 -2| in java.

Answers

Answered by imtiyazallam
0

Answer:

 |{a}^{2}  - 2|

In java

Math.abs(Math.pow(a, 2) - 2)

Answered by anindyaadhikari13
1

Question:-

  • Write the java expression for the following.

Solution:-

Given expression,

 \sf | {a}^{2}  - 2|

The java expression for the following will be,

Math.abs(a*a-2)

Similar questions