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

Factor by grouping 5x+15+xy+3y
equivalent ratio for 12/9
Why are Americans considered to be an “ideologically homogeneous” people?
Which sentence contains both an adverb and a conjunction? A. Lucille was a kind person, but she hated people who spread rumors. B. Lawson crept silently u
How do you solve equations with variables on the both sides? Like.... 2x-3=6(x-5) I made this equation so don't solve it.
what is the least prime number greater than 50
How were the indigenous peoples of Australia affected by the British takeover? a. The British moved most of the indigenous peoples onto lands with poor quality
how many times does the earth circle around the sun
What do the three references to slavery in the Constitution touch on?
round 905154 to the nearest ten thousand