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

What's -2•7=-3+t+24 plz help
which precedents practice did institutions of roman republic set (start)a one man one voteb representative gverment
Standards for all manager's ethical responsibilities are covered in a company's _____.
Which answer choice correctly completes the sentence? the foul ball was __________ in the lucky glove of a young baseball fan. a. caughten b. caught c. catch
Does 7 have a multiple? why yes, or why not? Explain using numbers, words, and pictures.
The number of cars at a dealership dropped from 64 to 48 after a weekend sale. what is the percent of decrease in the number of cars? a. 20% b. 25% c. 33% d
Ross Perot stole Republican votes in presidential elections in the 1990's.TrueFalse
the mailman delivered a $22 check and 3-$14 bills today.he also took back 1-$5 bill.what is the total in the mailbox
What 2011 updated book on the NHL includes 30 interactive facsimiles of memorabilia creatively inserted into the pages? -SPORTS- (closest I could pick was hea
Suggest to working parents 3 ways in which they may share responsibilities in the home