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

how much does the sky weigh
Why did Japan invested money in human development rather than agriculture​
120*45+120*54*120+0+0+0+0+0+0+0=
Consider the 65 N light fixture supported as in the figure. Find the tension in the supporting wires.
Which of the following terms is used to describe a group of similar cells that work together to carry out a particular function? Choose 1 answer: A. tissue B. o
Matching Question. I need help with this.
i need recommendations. which one is the best one to get MacBook Air M1 (2020) or MacBook Pro M1 (2020). The Air Mac or the pro Mac? why?
what determines the color of an transperent object?
HELP FAST 10 POints ............
this is so important​