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 class of 25 students had a vote. 24% voted on selection 'a'. 1/5 of the class voted on selection 'b'. And 0.56 voted on selection 'c'. How many of the student
how do I get the answer to 0.6 divided 25.2
what are two decimals that are equivalent to 7.75
what is a eogeo shield
Will award What became a stumbling block when the U.S. and France were negotiating a peace with the British? A. France wanted England to return Gibraltar to Spa
COMPLETE EACH PATTERN. 1/3,2/6,3/9,4/ 1/2,2/4,3/6,4/8,5/ ,6/
Which of these fields was the “Lost Generation” associated with? music movies literature science
Which of the following supported Jim Crow laws? a) the Nineteenth Amendment b) Plessy v. Ferguson c) the NAACP d) the Woman Suffrage Association
jut for every answer choose negative or poitive 1.(–21.9) • (–6) • (–1.1) • (–0.47) a. negative b. positive 2. (–39) • (0.5) • (–0.92)
15 is what percent of 165