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

sentence does not contain any errors in comma usage? A. Gorillas travel in packs walk on all fours, and sometimes stand upright. B. Gorillas travel in packs, wa
Which document died the second paragraph of the declaration of independence echo? John Locke's Second Treatise of Government Thomas Hobbes's Leviathan Baron de
What is the simple subject and predicate for "Many were sent to prison camps during World War 2."
Which is a vey slow, naturally occurring environmental change? A. volcanic eruption B. climate change C. wetland degradation D. pollution
find the selling price of a $270 bike with a 24% markup
Why did the Royal Proclamation happen
Can you guys explain how to find the sum of the two digit multiples of 11??
in Jamies math class, 9 students chose soccer as their favorite sport. this amount represents 3/8 of the entire class. the equation 3/8s = 9 can be used to find
Why is Pompeii such an important archaeological site?
Which company owner's industry flourished during the Roaring Twenties as a result of his own innovation in production and modernization? A. Billy Sunday B. Henr