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

I need ans asap!!Find the sum of all sides of the following rectangle ​
Refer to the article "Aboriginal Australians and Dreamtime Creation Myths." Part A What does the author explain about the inclusion of a sun goddess in the st
(c) The town of Hornsdale in Australia has electricity supplied by a huge battery. On one day the battery transferred 3.24 x 1011 J of energy to the town. The p
Which of the following is the FIELD in a database table? Account_Balance $2,109.49 $1,345.20 $969.78
HELP QUICK PLS 50 POINTS Amendment Process Template - Part 1
3) Data for a project come from 30 randomly selected apple trees where each tree was assigned one time to be pruned: early-, mid-, or late- season and then the
Raja Ram Mohan Roy founded the_______
In Figure 1, ABCD is a rectangle with AB = 12 cm and BC= 7 cm. AK= BL= CM= DN = x cm. If the area of KLMN is 54 cm², find x.
Handwritten solution required
find x and y given that 2x-10= 4y and 3y = 5x-18​