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

Simplify 8^ -5 over 8^ -3 <-- this is a fraction A: 1 8² B: 1/ 8⁸ C: 8² D: 8⁸
I will appreciate it if someone helps me please
How long does it take for a train traveling 60.4 miles per hour to travel 81 miles?
What type of blood is carried by the four major blood vessels entering/leaving the heart?
When mik has an absolute advantage in the production of two goods over tommy, mik?
Explain how far Shakespeare presents Macbeth as a character who believes in the supernatural power of the witches
Please help me. number 44, 45, 55
A machine produces 75 widgets an hour. How many widgets does it produce in 6 minutes
compute 214.056 + 9.3456. Round the answer appropriately
Men in the age groups of 18-34 years need to be to run a marathon in 3 hours and 10 minutes to qualify for the boston marathon how many seconds is this?