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

You use the same finger to click the enter and backspace key. 1. True 2. False
PLEASE HELP DUE NOW will mark brainliest! 10 points
Which of the following statements is an example of wording that might be included in an informative advertisement? a. Machine washable b. The route to good heal
WILL MARK BRAINLIEST!!! Calculate the degree measure of KJM in H.
new round of warfare between the Sioux and U.S. Army began in 1874 when a Colonel George Custer led an expedition to Little Big Horn, Montana. b Sioux Chief Cra
Six values on the number line above are marked with letters. Match the opposites.
please help meeeeeeeeeee
Express 0.89 as percentage and fraction.
What's the correct answer?
Paul ____ mi novio. 1. está 2. es