emojigirl7200 emojigirl7200
  • 01-12-2021
  • Computers and Technology
contestada

How to square a number in java.

Respuesta :

emmaginative
emmaginative emmaginative
  • 01-12-2021

Answer:

num**2

Explanation:

To square a number in Java, you just take the number and use two asterisks (**) to denote an exponent, and then connect a 2 to it.

For example, if your number is 5:

5**2 in Java means 5^2, which is 25.

Just like how 5**3 in Java means 5^3.

Hope this helps.

Answer Link

Otras preguntas

Which of the following number sentences illustrates the associative property of multiplication? A.8x9 = 9x8 B.2 x (1 x 9) = (2 x 1) (2 x 9) C.(3 x 8) * 6 = 3 (8
HELP PLEASE IS THANK YOU
tectonic plates move because of a. convection currents b. Earth's increasing size C. magnetic reversals D. volcanic activity​
What is the least common multiple of 6/30
Environment is polluted in many ways. It is high time____________. Complete the sentence
solve 3/4x+2=5/4x-6 ​
i need help with the question please
why does the formula for area of a circle make sense
Which of the following is an example of an industrial union?(1 point) A. a union composed of graphic designers B. a union composed of teachers C. a union compos
What is the difference between an organism’s habitat and its niche? 1