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

global warming leads to rise in the water level . Do you agree ? Prove your statement
find the diameter of a circle whose circumference is: 1.) 110m​
The sum of the ages of two friends ia 15 years Two years ago, the product of their ages in years was 30 write the suitable quadratic equation to solve the probl
WEB IN QUBASIC TO FIND PROGRAM​
If a= 2 m/s2, determine v when t= 2 s if v= 0 when t= 0
Demanders: ______ goods like cars, boats, furniture and _______ investment borrowing to buy capital equipment and the government borrowing when running a defic
Where is the list of attribute types? O Diagram O Table O Relationship O Glossary
jxbjsb x x g sssssssssssssssssssssssssssssss ssssssssssssssssssssssssssssss
Work out the surface area of the prism.​
Most of the fresh water on earth is