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

. Find the height of a triangle whose base is 50 cm and whose area is 500 cm².
Why would statehood cause a Great Debate?
Please need help on this
Graph y = sin(x) on the graphing calculator. Use the graph to determine the height of the barnacle with respect to water level as the boat has traveled the give
during the prelude to WWI, what was the attitude of the U.S. towards the rise of dictators in Europe and japan a. we need to stop this (ง ͠° ͟ل͜ ͡°)ง b. we su
How did Enlightenment ideas impact the development of economic, political, and religious structure in the western world?
what the rule for the transformation is​
What is the greatest common factor of the terms in the polynomial
Heeeeelllp pleeeaaase ❤️
Hi please help me on number 25 and explain thank you