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

Need answer fast please
To help increase of the culture production they Tang Dynasty ____. Select all that apply
Write the algebraic expression that matches each graph:
An internal conflict features character vs. . A. Character B.Nature C.Self D.Society
What is the value of cos H? round to four decimal places if needed? F 77 G 36 H 85
WILL GIVE BRAINLIEST PLEASE HELP ASAP In the following function defined by an equation in the form y=ax^2+bc+c, identify the values of a, b, and c. y=-2x^2 a.a=
What is the surface area of a rectangular prism that has dimensions of: Length is 6.5, width is 8, and the height is 3.8
The solution to 2 × 27 will be what kind of number?        A. Odd  B. Perfect square  C. Even  D. Prime
how do i do this I cant math​
Find the range of the sample data set. 16,465 17,342 19,835 15,147 15,898 18,324