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

they type of graph used to show how a part of something relates to the whole is which of the following
how to find ordered pair by graphing with two lines
a right Triangle has one angle Measuring 90 degrees and another angle Measuring 30 degrees what is The Measure of The 3rd angle 90 degrees 60 degrees 50 degrees
A sign says that the price marked on all music equipment is 30% off the original price. You buy an electric guitar for the sale price of $280. What is the origi
Name the greatest geological dangers on our planet.
7/5 × c for c = 8 what is the anwser
How do u turn y-1=3(x+10) in standard form ?
Which country was the first to ally with Germany in World War lI
Trevor has 1/3 of baseball card collection. His grandmother gives him another 1/8 of the same collection for his birthday. What fraction of the does Trevor ha
How can spell check be ineffective