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

Suppose the slope of a line is positive. Describe what happens to the value of x as the value of y increases
What unions were open to African Americans in the 1920s?
What is party-as-organization?
Which statement best describes how the energy stored in ATP is released to drive biochemical reactions? a. Energy is released when the ribose sugar reacts with
The area of a square field is 200 square feet. What is the approximate length of each side of the field? Round your answer to the nearest foot.
How do we solve that problem 1/4(x-3)=3x-11/4x-3
Why should mass not be represented by an arrow?
What is a way a cell is put together called?
If x=3 and y=-2 and z=4, what is the value of 3x + 2y - z?
You just priced what it would cost to buy vinyl floor tiles at the local tile store. They quoted you $3.29 per tile. When you went home you found the same exact