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

i was asked to write an essay about my department in french..my department is international studies.. please help me.​
what is 5 times 25 divided by the square root of 225 subtracted from 10,247 and than added to pie.
If ƒ(x) = x + 2 and g(x) = 3x2 + 7x, find ....
Can someone help me pleaseeeee
find r 3(r - 7 ) = 4(2 - 2r) + 4
HELPPPPPPP!!!!!!!!!!!!!!!! A ball is thrown from an initial height of 2 meters with an initial upward velocity of 11 m/s. The ball's height h (in meters) after
The main effect of the earth tilting is A. Heating B. Seasons C. Atmosphere D. Years
How do I calculate percent yield of an element in a chemical reaction?
why is Sikim not in the seven sisters ​​
PLEASE HELP ME!!! PLEASE HELP!!!! Which type of reaction does this diagram represent? A) a chain reaction that is caused by nuclear fission B) a chain reaction