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

The proportional relationship between two variables, y and z, is represented by y = 11/2z. What is the constant of proportionality from z to y?
I need help pls help
On a coordinate plane, a right triangle has points A (negative 5, negative 6), B (negative 5, negative 2), C (negative 2, negative 2). Examine the right triangl
Two gymnasts are running toward each other in a floor routine, and they plan to precisely time a flip to stay synchronized for the audience. The path of the gym
describe the condition of life that would prevail on earth if there is no water vopour in the atmosphere?​
Business is a social process . Discuss​
what is special education
100 students take a test. The mean score of the results is 88% with a standard deviation of 4%. Considering that the results were normally distributed, what is
Who was responsible for Jesus' death and who actually crucified him? Use evidence.
Name the types of angles shown?