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

Which activity made the most money after world war i?
When someone asks you to pass the salt at the dinner table, you are able to understand the request even if it is asked in a variety of different ways?
North Africa and Southwest Asia are on two different continents, but are considered one region. This is MAINLY because the people in this region A) are of the s
In your opinion, what would be the consequences if the memory manager and the processor manager stopped communicating with each other?
Your town decides to build a volleyball court. If the court is approximately 40 by 70 feet and its surface is of sand, 1 foot deep, the court will require about
how does ally show Travis that she believes in him.. the fish in a tree story
Solve the equation for Y 13x+y=4
The north american free trade agreement continues to spark debate today, particularly concerning?
G which atomic orbitals overlap to form the carbon-carbon σ bonding molecular orbital of acetylene, c2h2?
A _______ is the collection of all the genes that a species has. chromosome DNA molecule genome none of the above