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

Some friends made a salad for a party. there were 28 people at the party including the friends. they bought enough cherry tomatoes for everyone to get 3 cherry
what industries are important to italy?
Animal-like protists are considered a. autotrophs b. chemotrophs c. heterotrophs d. none of these
Why was rosa parks called the “mother of the civil rights movement”??
Name some study tips
Which helped to bring about the enactment of federal meat inspection laws in the progressive era?
P,q,r are three points on level ground bearing of r from p is 135 pqr is 55 and prq is 48 .calculate 1 p from r. 2 q from r 3 p from q.
Four friends are going on a camping trip. they have 1/2 kilogram of raisins to share equally. how many kilograms of rasins does each friend get
There are 48 adults and 60 children going to an amusement park. They need to be divided up into groups with the same number of adults and children. What is the
How do frogs regulate the pressure inside their head while swimming?