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

What is: -1/8+3/8-5/8+7/8=
Solve the pictures please.
A man on a diet is losing four-tenths of a kilogram each day. How many days will it take him to lose 3.2 kilograms?
PLEASE HELP!!! WILL MARK BRAINLIEST!!!Spencer is asked to factor the polynomial 256x^4 y^2-y^2completely over the integers. His work is shown below.256x^(4)y^(2
Which pair of words describes this system of equations ? 3y=9x-6 2y-6x=4 A) inconsistent and dependent B) consistent and dependent C) consistent and independe
HELPPPPP PLEASEEEE!!!!!! Just number 9
Which pair of words describes this system ? 3y=9x-6 2y-6x=4 A) inconsistent and independent B) consistent and dependent C) consistent and independent D) inc
Which of the following could have the electron configuration 2.8? I. Sodium (Na) atom II. Lithium (Li) ion III. Oxygen (O) ion IV. Neon (Ne) atom V. Sulfur
y = (4x^3 +8)^1/3/(x+2)^5
Nepal is poor country why​