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

Is a group of rare diseases that cause abnormal growth of the body's connective tissue
How many 1/4 pounds of patties can be made from 5 pounds of ground turkey?
Give 3 examples of climate change that you know.
In order for the constitution to be accepted it had to be approved by
For each set of angles, decide if there is a triangle whose angles have these measures in degrees. (A. 60,60,60 B. 90,90,45 C. 30,40,50 D. 90,45,45 E. 120,30,30
How much chocolate will each person get if 3 people share 1/2 lb of chocolate equally?
What is the term for the religious movement that asked Americans to emotionally and personally connect to their faith?
Please help! Question below (:
HALP!! First to people get marked brainliest
Please i need help! I don't understand this Working with inequalities is similar to working with equations. A solution to a one-variable inequality is a value f