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

What is the value of x in the equation 3 x minus 4 y equals 65, when y equals 4? A. x equals 13 and one-fourth B. x equals 21 and two-thirds C. x= 23 D. x=27
My brain is hurting please help if you can qwq
If you are a government authority what extend will you modify the existing policy
What you want to learn from Cirilo F. Bautista
i need help plssssss:/
Select the correct answer. Which thesis statement best suits Karen Joyce's letter to her son's school principal? The positive effects of nature study among chil
If m= -4 and n=7, what is the value of m- n? 3 -3 11 -11
What animal was massively important for many Native American groups in the West and provided food, clothing, and shelter for their people? *
In the Mending Wall, how does the speakers repetition of the neighbors cherished beliefs about the importance of walls (line 27 and 45) covey they poems critici
The equation of a parabola is y=x2+6x+9. Write the equation in vertex form. Simplify any fractions.