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

por que os vulcões e os terremotos são mais freqüentes em certas regiões do planeta
luke jogged a total of 56.5 miles last week. if luke jogged the same distance,d, each day for 3 days and half that distance on each of the reamaining days, whic
ted is making three picture frames like the one shown below.what length wood does ted need for all three picture frames?
How do you say "Some brown spiders"?
An illegal drug stimulates the parasympathetic nervous system, causing the user to appear tranquilized. What could indicate to a paramedic whether or not the pe
PLEASE CHECK MY ANSWERS (PART 1)
PLEASE CHECK MY ANSWERS (PART 1)
A bottle of fruit juice is 800 milliliters. How many liters of fruit juice are in 120 bottles?
1. What is the value of the expression below? Please show work 3⁴+9= A.21 B.39 C.43 D.90 2. Which expression is equivalent to 5(d+1)? Please show work A.5d+5 B.
15 is 70% of what number