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

Which of the following most contributed to H0 Chi Minh’s campaign in the conflict with France following WWII? H0 Chi Minh’s rejection of the views of the Commun
why is that when an ice is compress on someones head he dies
Plz help! Question is in the picture.
Help me plz I don’t know nothing about this
how do i solve using distributive property ? 10 (9-m)
Why do you think so much of the art created in the Middle Ages was religious?
Which of the following is not necessary a reason to machine a brake drum? A. Taper B. Minor scoring C. Out-of-roundness D.pulsation
A swimming pool is 10m long, 8m wide and 4m deep what’s is the volume ?
Use the quadratic formula to solve the following: 3x^2-5x-2=0 This equation has____.a.2 solutions - one is an integer and the other is notonly one solutionb.2 s
Solve for f: 2f = -12