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

A solution is prepared by dissolving 40. 0 g of sucrose, c12h22o11, in 250. G of water at 25°c. What is the vapor pressure of the solution if the vapor pressure
A How does paragraph 1 contribute to the authors' explanation of kindness in the te-> It shows how people have conflicting opinions about why people are kind
built on real-time geodata and information provided from wireless mobile devices, ________ are widely used in m-commerce.
5- Residents unable to express a preference should be dressed:
What is the actual distance between Gendet and Montrose
Which statement best identifies a central idea of this text A. The government is a self-serving establishment with the sole goal of making more money for itsel
Is your mother warking in old office building
Someone pls help me I will make you Brainly
HELP ASAP - it’s about odds and expected value
Determine Rexxars' Heart Rate Reserve if his Resting Heart Rate is 60 at the age of 20. A. 100 B. 120 C. 140 D. 160