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

True or false everyone in the colonies could vote
Any gïrls here free to talk
Write 0.65% as a fraction in simplest form.
Which of the following statements best describes the formation of volcanoes?
What is the term for the type of venation seen on a ginkgo tree? Help meeeee
What is the slope of the line passing through the points (2,-5) and (4, 1)? A 5/4B 3 C 2 D -4/5​
y = -x + 3 2y + 2x = 4
Answer number 5 a,b,c,d,e pls thanks
What is the largest known number called?
Which of the following statements best describes the formation of volcanoes?