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

According to the dihybrid cross below, what proportion of peas would be green and smooth? A) 9/16 B) 1/4 C) 3/8 D) 1/16
Question 5 (5 points) Use the picture below to determine if the following statements are observations or if the statements are inferences. Place a “O” in the b
Hello i need some help here the answer A.x−3y=6 5x−y=10 B.3x−4y=24 2x+3y=−6 C.2x−9y=18 7x−2y=14 D.x−8y=16 5x+2y=20
Pls tell me the answer of this
hi can you please answer this question 20 points if u do
What are the key events for tell tale heart someone please help
Lincoln's political party was the Democratic party. A list of potential answers True False
You are going to write a letter in which you use a story to tell a friend about a problem you solved. To prepare, address these questions: What will your proble
hi if you know 8th grd math pls help
Find the perimeter. Simplify your answer.