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

who wrote the Declaration of Independence
Write each rate as a unit rate 3 inches of rain in 6 hours
Who was the first coach to lose the Super Bowl indoors?
How does the area of the triangle relate to the area of the square? Please Explain!!! I really don't get it!
Which is more 3 tons or 6001 pounds
i need 3 poems based on the same theme
What's the rationale for adopting the US dollar as "legal tender" in Argentina?
How were the independence movements in Vietnam and Kenya similar? Both nations achieved independence from British rule. Both movements involved violent conflict
what is the standard form of the parabola whose vertex form is Y=-(X-3)^2+11
Solve for x logx+log(x-4)=2log5