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 leader led the Israelites on an "exodus" out of Egypt to settle in Canaan? a. Abraham b. Jacob c. Moses d. Noah
Allen bought 5 more golf balls than Mabel. Together Allen and Mabel bought 17 golf balls. How many golf balls did Mabel buy?
Todd is playing a board game and rolls two number cubes. Let A = {the sum of the number cubes is even} and let B = {the sum of the number cubes is divisible by
Javier wants to improve his flexibility and increase his personal discipline. Which community resource should he select?
what is the value of x? when the coordinates are (4x+2) and (3x-7)
A number cube us rolled 450 times. The number 3 comes up 67 times. (a) What is the theoretical probability of rolling a 3? Write your answer as a fraction in si
Give two advantages of remote sensing to a GIS user
Find the sine, cosine and tangent of A. Reduce all fractions and radicals.
Which equation can be solved to find one of the missing side lengths in the triangle?
Buying with credit cards can cause major problems. True False