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 Allied Taxi Company charges $2.50 to pick up a passenger and then adds $1.95 per mile. Isaac was charged $27.46 to go from one city to another. If x represe
A large mural decorates one wall of the community center. Some artist painted the mural last year. The mural shows groups of children singing, playing soccer, a
What is some qualitative and quantitative that prove the law of superposition? please i have no idea
In which process does water move from plants to the air?
three less than twice a number
The product of 7 and x is less than or equal to -21
last night Eli read 1\4 of his book before he fell asleep. how much of the book does he have left to read?​
What subjects did artists of the Ashcan school depict? A. active waterways with steamboats and ferries B. busy street life and working-class leisure activ
Convert 1/6 to a percent
The boiling point of water is 212°F. What is this temperature in degrees Celsius? Use the formula C = 5/9 (F - 32), where C represents the temperature in degree