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

12. The Greeks were known as the first astronomers. A.true B.false It’s true
Oliver started his banking account with $100 and is increasing the account $20 per month. Which type of function does this situation model? A) quadratic functio
A full glass of water can hold 1/6 of a bottle. How many glasses of water can be filled with 3 1/2 bottles of water.
Erik correctly rounds three numbers. One and StartFraction 7 over 29 EndFraction rounds to 1 One and five-sixths rounds to 2 0.16 rounds to 0 Which shows the nu
Any one help thx I'm just stuck on this​
heklp me again please if you dont mind
Angle YXZ is ____ degrees. Angle VXW is ____ degrees. Angle WXZ is _____ degrees. Angle XVW is _____ degrees. Angle XWZ is ____ degrees. Angle XZW is ____ degre
Ecrivez une lettre amitie .(10- 15 ligne)
If (NN)^3 = 8518N, what digit does N represent? (A) 1 (B) 2 (C) 4 (D) 5 (E) 6
What is the strong consensus definition for investigative journalism?