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

If a pond is located in an area with significant amounts of air pollution, which health measure would be most directly affected? A: pH B: nitrates C: turbidity
If John Needed 1000 Muffins a week for him party and Each person Ate 100 Muffins out of it how many would be left?
For which k are the roots of k(x2+1)=x2+3x–3 real and distinct?
Why do you need a control group, and how is this group different from your experimental group? (Don’t copy on online PLEASE) THANK YOU!
*WILL MARK BRAINLIEST! Why is it difficult for us to use fusion reactions to produce energy?
Please help last question (10 POINTS)
solve for x (x+3)/6 > (x-1)/2
Why did Congress pass the Indian Removal Act in 1830? to move Indian tribes west of the Mississippi River so white settlers could take their land to move Indian
Please help me A(-3, 6) and B(0, 6), what are the coordinates of point P that lies on segment AB, such that AP:PB = 2:1?
How do I solve for x?