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

Newton's law of universal gravitation states that a. every object in the universe attracts every other object. b. an object at rest will stay at rest, and an ob
Fill out the chart below explaining how the Bourbon Triumvirate felt about each issue
What is the value of x?
Which figures are polygons? Select each correct answer. Figure A Figure B Figure C Figure D
Los lados de un triángulo son x, (x + 1) y (2x − 1) y su área es x√10 ¿Cuál es el valor de x?​
Discuss how Cootie was allowed to be served by a whites-only hospital.
In this figure, AB || CD and mZ3 = 120°. What is mZ6? (Look at picture”
Everyone in the North opposed slavery and fought against it. Question 9 options: True False.
PLEASEE HELP! Why is the historical allegory of “Rip van winkle “ important ? Summary
can someone please help me solve this logarithm equation