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

y = -x + 3 2y + 2x = 4
evaluate this equation (-5)^5/(-5)^-6
The amplitude of a mechanical wave shows _____. A. how fast the wave is moving B. how many waves pass a given point in one second C. how many seconds it takes a
what is 50+60 i need help
plum-pudding model other name​
Which of the following was not a title taken by Augustus? O Pontifex maximus O Princeps O Augustus O Emperor O None of these
What is the term for the type of venation seen on a ginkgo tree? Help meeeee
100 POINTS 6 different answers needed, and a chart filled out I'll work on it on my own, but I do need some help and it would also be nice to compare my answe
Please help! will mark brainliest i need an explanation to each road,a,b,c. ​
desparte in silabe cuvintele date apoi incercuieste diftongii marcand semivocalele cu semnuls pecific