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

This map illustrate the Columbian Exchange. Which contribution to American agriculture was introduced from Europe?A. Cattle B. TomatoesC. CornD. Pineapple
Find an equation for the line with slope m through the point (a,c).
Having a stronger negative or positive change on one side is called what ?
The small blood vessels that deliver blood to and pick blood up from tissues are
Which equation does the graph below represent? A coordinate grid is shown. The x axis values are from negative 5 to positive 5 in increments of 1 for each grid
Which barrier to effective listening involves neglecting listening because of pressing deadlines?
for the expoential function y= ab^x, which of the following value(s) would produce an expoential decay function?a. 0<b<1b. a<0c. b>1d.b<0
Elaborate on the changes in molecular motion of particles as they change from solid to liquid to gas
The north american free trade agreement continues to spark debate today, particularly concerning?
Use perfect squares to find the Approximate of √15