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

If 6 and x have the same mean (average) as 2,4, and 24, what is the value of x? And how?
a number is k units to the left of 0 on the number line. describe the location of its opposite.
what does alignment mean in dance?
How do you translate "fifty-three plus four times c is as much as 21" in an equation
What's the algebraic expression of "4 times a number cubed decreased by 7"?
What is the diameter of a circle whose circumference is 5? 1) 2.5/pi squared 2) 2.5/pi 3) 5/pi squared 4) 5/pi
is -n always sometime or never a positive number ?explain
Calculate the number of moles 2.25 g of Na2CO3  0.800 g of NaOH  17.75 g of Na2SO4
how to write 0.632 in wordform please show an example
what is the least 10 digit whole number