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

The company Jake uses charges $25 each month and $0.04 for each minute of usage time. Express t and terms of M
Most acids are strong acids. A. True B. False
Prompt Paula aterrizará en La Paz el viernes de la semana próxima. Ella visitará Cochabamba, la más fantástica ciudad de los andes bolivianos. Ella y su familia
Which statement would Dante most likely agree with?
Suppose a commercial banking system has $ 100,000 of outstanding checkable deposits and actual reserves of 40,000. If the reserve ratio is 0.4%, the banking sys
HELPPPPP plzzzzz plzzz
please help me I'm stumped on this​
Complete the sentences using the future tense 1. Cuando se acaben las clases... 2. Cuando se acaben las clases...
Helpppppppppppp Spanish
please help me pleaseeeee​