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

Use multiplication to find three ratios equivalent to 8:12
a model car has a scale of 3 cm : 2 m. The length of the actual hood of the car is 1 m. What is the length of the model?
joan counted that 2/10 of her jelly beans were red. Dean counted that 6/10 of his jelly beans were red. Hiw much greater a fraction od Dean's jelly beans were r
One plate goes under another in a _____. A. subduction zone B. transform fault area C. seafloor spreading zone D. region of paleomagnetism
The alloy stainless steel is used instead of pure iron for the ball of the pen. Give two reasons why.
How does the phosphorous cycle differ from the nitrogen cycle and the carbon cycle?
Colin meets three wooden boards to repair his porch.The length he needs are 2.2 meters,2.82 meters,and 4.25 meters.He purchases a board that is 10 meters long a
What is 35/6 as a mixed number
autumn used 0.675 of the battery life on her mp3 player. her brother borrowed it to play a game and used 0.2 of the total battery life. of her mp3 player shows
What are the common factors of 20 25 and 40