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

in which civilization did the state largely control trade, preventing a professional merchant class from emerging?
Which of these is an opinion? HINT A. BMW is not the only carmaker with a company orchestra. B. Johanna Weitkamp leads one company orchestra. C. Some people pla
Find the value of B in the following equation if you know it goes through the point (-4,1). 5x - 3y = B B =
Why do the Britons lose the war? They do not have the drive or passion to succeed. They are not as well trained as the Roman army. They are lacking in strong, d
What enabled Europe to establish trade networks at this time? 1. most of the scientific ideas where being generated in Europe 2. they had the best armies 3. man
should variables that contain numbers always be declared as integer or floating-point data types? why or why not? name potential examples.
8|x-2|=2 solve for x
Ps help it’s in for 10 mins
vkghcxtykcutlivygbuohiugivyucymztjdxfykcu;
what is control and coordination​