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

What are the 36 questions and answers for dmv test
Complete the sentence with the correct response. In companies that place a high value on consensus, there is a tendency to prefer the model.
Can someone help me with this plssss it would help so much! (IM GIVING LOTS OF POINTS!!!!!!!!)
The area of right angle triangle is 103.35 if one of the sides containing the right angle is 15.9 cm find the other side
Please please Help will give brainliest!!! 100 POINTS Use the table to identify the values of p and q that should be used to factor x^2 + 3x - 10 as (x+p)(x+q)
help would be very appreciated
What is the Full form of URL
what is a gene mutation
A piece of brass of mass 300 grams at temperature of 950 degrees Celsius is quickly transferred to a copper calorimeter containing 250 grams of liquid at 25 deg
A person needs to fill 10 water jugs with a hose. Filling the first 2 jugs has taken 3 minutes. How long to finish filling the remaining jugs?