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 pls 2 Answers and I can make brainliest whoever has the correct answer
Given the Quadratic equation y = 2x²- 9x - 13, what is the y intercept? (0,0) (0,-13) (0,2) (0,-9) Help please
The mean incubation time of fertilized eggs is 20 days. Suppose the incubation times are approximately normally distributed with a standard deviation of 1 day.
Help whats the answers?
The gravitational field of the Moon is weaker than that of the Earth. It pulls on each kilogram of mass with a force of 1.6N. What will be the weight of a 50kg
What is injection molding process?
what is the dog actually doing
What is the cardinal number of the set of positive integers less than 15?
15=2m+3 solving two step equations
¿Cómo se llama el Día de Acción de Gracias en inglés? El Día de Acción de Gracias en inglés se llama Thanksgiving. El Día de Acción de Gracias en inglés se llam