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 24-hour time is 14:00. Find the equivalent 12-hour time. Show all work.
The four main allies in world war 1 were
Which best describes the relationship between the successive terms in the sequence shown 2.4, -4.8, 9.6, -19.2 A) the common difference is -7.2 B) the common di
What does Mark Twain satirize in this excerpt from "The £1,000,000 Bank-Note"? It was a lovely dinner-party of fourteen. The Duke and Duchess of Shoreditch, a
after 58 years, the supreme court reversed the decision in plessy v. ferguson (1896) and declared that
What vascular plant tissue is made of dead cells
Someone please help me will give BRAILIEST!!!!
What is the equation of the line passing through the points (-1,2) and (-2,-1)
write a verbal sentence involving an unknown number and two operations
which shows the equation of the line containing the point (-2,6) and having a slope of 3 in slope-intercept form? a) 3y=x+20 b) y=3x-20 c)y=3x+12 d)y= -3/2x+3