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

Identify the passage that contains a sentence fragment. A. Following President​ Kennedy's assassination, Idlewild Airport in New York was renamed John F. Kenned
In the late 1800s and early 1900s, factory owners hired children A) in spite of the laws against this practice. B) because they could pay them less money. C) be
Cos x+ 2cosx + Sinx=0 solve the equation for the interval [0,2pi]
A rectangular floor is 15 ft long and 12 ft wide what is the area of the floor in square yards
A board measures 68 inches How many feet is this?
Henry has ridden 76 miles of a bike course. The course is 95 miles long. What percentage of the course has Henry ridden so far?
According to article i of the constitution, who has the power to declare war? what power does the constitution give the president in the area of war?
Enrique y Yéssica ________ una carta de su abuela en Boston hoy en la mañana. A) podían Tomás y Elena ________ venir a los EE. UU. porque su papá estaba en el
what are the values of x.
Write the equation of the line passing through the given pair of points. (-9, 7) and (-9, -1)