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

In a class of 78 students 41 are taking French, 22 are taking German. Of the students taking French or German, 9 are taking both courses. How many students are
the caning of Charles sumner resulted from accusing other senators of
topic sentence about venus
How Do Different Liquids Affect Plant Growth?
In a chemical reaction, the difference between the potential energy of the products and the potential energy of the reactants is defined as the (1) activation e
Which species does not have a noble gas electron configuration? (1) Na+ (3) Ar (2) Mg2+ (4) S
The Napoleonic code was a comprehensive set of a) Military strategies b) Laws c) Economic rules d) Political judgments
How are global issues and human geography potentially connected?
What is the purpose of archaebacteria?
brandon wants to join a video game club. The membership costs $47, and every game that he rents will cost $2.if brandon rents 17 games how much money will he sp