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

An employee earns $6,300 per month working for an employer. The FICA tax rate for Social Security is 6.2% and the FICA tax rate for Medicare is 1.45%. The curre
What is the greatest common factor of 15xy3 and 18x5y
Intrusive igneous rocks _____.
Write as an algebraic expression and then simplify if possible: Seven less than twice a number n.
what is the volume of stank of nitrogen that contains 17 moles of nitrogen at 34 C under 12,000Pa?
Cathy lives in a state where speeders fined $ 10 for each mile per hour over the s speed limit cathy was given a fine for $80for speeding on a road where the sp
which statement best describes the relationship between the industrial revolution and mass production in great Britain? apex high school
You went shopping for batteries. Your bill was $14.39. How many 9-volt batteries did you purchase at $2.39 each if AA batteries cost $1.61 each and you purchase
Chung has 6 trucks and 5 cars in his toy box. Brian has 4 trucks and 5 cars in his toy box. Which is the correct comparison of their ratios of trucks to cars?
What is the factorization of 81a6 -100