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

in the triangle cosA/cosB= what can you help me?
The theme is usually revealed in the resolution of the story because (5 points) the theme relates to the lesson learned from the conflict the theme shows what t
what are the original 13 colonies and which became states first?
Natural Vegetation in Minnesota. Please tell me the type This is for state report
A jewelry designer is working with a design that is a regular hexagon inscribed in a circle. He needs to cut a diamond to fit into each of the triangles shown.
Explain why materials with metallic lattice structures can be used to make wires and connections that conduct electricity in electrical circuits.
Need help on number four
(select all that aply) Under the terms of the Nazi-Soviet Pact, Germany and the Soviet Union agreed ______. 1 not to go
9 days ago the area covered by a mold and a piece of bread with three square inches today the mold covers 9 square inches find the change of rate
What is the value for 6 days in the linear function, please help!!(20 POINTS!!)