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

The truman administration tried to help europe recover from the devastation of world war ii with the _____.
An important change in the american family in the nineteenth century was
Which tortoises, mainland or island, need to eat more food per gram of their body mass?
Which aspect of communist economies kept them from matching the production efficiency and quality of free market economies
Mark bought a set of 6 flower pots of different sizes at a total cost of $8.25. each pot cost $0.25 more than the next one below it in size. what was the cost,
How do you find x ????
PLEASE HELP ME !!!!                 Use I = PRT to solvEI = $350 P= $700                     Find T (TIME IN YEARS) R= 10% (
Between 1920 and 1930, almost a million african american's left the south for the "promised land" up north during the
While speaking with cassius, what military action does brutus want to take?
Why were senators able to amass more power and influence than congressmen during the gilded age?