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

what is the fullform of cpu​
PLEASE HELP! WILL MARK AND GIVE POINTS.
attached is an assignment I am having trouble with I did problem 1 and 2 but I don't think it right can someone please look at it? This way I can move on to the
An alpha particle (α), which is the same as a helium-4 nucleus, is momentarily at rest in a region of space occupied by an electric field. The particle then be
can someone help my lil sister.
Can anyone help me with this science work it’s just 3 questions?!
can someone explain the steps i need to do to complete this?
People who answer this I’ll give you extra points Some question to solve of this : 1-to make your garage larger. You need one of 22 square meters. How muc
How do emulsifiers help oil and water to mix and not separate?
All cells require a nitrogen source to grow. The preferred nitrogen source for E. coli is an ammonium salt (e.g. NH4Cl ). The NH 4 is assimilated into cellular