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

You use a very sensitive instrument to measure the speed of sound in your front yard in December. You repeat the test in August when the temperature is 10°C (50
Drug use during pregnancy does not affect the unborn baby. Please select the best answer from the choices provided. T F
What is the equivalent decimal? Drag the answer into the box to match the fraction. 6/11 >>>>>>>>> __ 0.12 __ 0.27 0.54 __
What is the greatest common factor (GCF) of 40 and 36? A. 4 B. 360 C. 8 D. 2
Plz Help Asap!! I will mark as Brainiest!! Which group had "push factors", such as poverty, hunger, and war, that motivated their migration to French Louisiana?
simplify the fraction, 32/100÷ 4/4​
How did the Nuremberg Laws influence the rights of the Jews?
PLEASE HELP!!!!!!! WILL GIVE BRAINLY!!!!!! in ur own words please... docent have to be a long answer... just a sentence should be fine. I researched the le
plz help Erick, Tyson, and Lane together sold 90 tickets for the school banquet. Erick sold 38 tickets, and Tyson sold 24 tickets. How many tickets did Lane se
Are all relational numbers real numbers?