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

The 15th Amendment to the Constitution was passed about five years after the end of the Civil War. What did it say? A. It gave women the right to vote. B.
According to the lesson, what were two of the programs President Roosevelt put into place during his first year in office? Public Works Administration Social Se
how do u use enforceable in a sentence
does anyone know how to play that game of survival game of darwin and pick traits?
what is 75.3% of 1,394
Does the scorpion without any young fights or runs away from the owl?
Are carrots bad for you?
Which of the following is one observation that Darwin made as he developed his theory of natural selection?
11 is 40% of whst number
What is a half and half form ?