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

Help me please it’s important
What is the value of x?
A person who will follow your instructions specified in your will is called a(n): Question 2 options: trustor. executor or executrix. witness. beneficiary.
Reflects the link between geograhy and population trends in the United States?
You roll a number cube numbered from 1 to 6. What is the probability that the number is odd
Solve x2 + 8x + 10 = 0
Find (2x^2+2)+(x^2-4)-(3x^2+1) Answers 3x^2-1 6x^2-3 -3 6x^2
Cells divide, differentiate, or die. what is differentiation?
Solve for each of the following proportions: a. 5/x=30/42 b. x/8=-12/32
If vector u has its initial point at (-17, 4) and its terminal point at (8,-11), u= ? i + ? J. If v=14j, 2(u-v)= ? i + ? J *the question marks stand for the bla