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 student makes several observations about a piece of iron. Which observation describes a chemical property of the iron? A. Its mass is 52 grams. B. Its densi
What is the result of converting 14 inches into centimeters
Maya works at adventure fun park she notices that the daily number of tickets sold at the park varies with the daily high temperature what is the dependent vari
Darian is multiplying 3/4 by 1/2
Can someone help? Need to turn in tomorrow!
Which activity is the fourth step in the decision-making process of solving a workplace problem? A. choosing an alternative B. evaluating the consequences C.
how did the Incas create a society
Which of the following best describes the early use of Oklahoma lands by Europeans? A)meeting place B)extensive settlements for trade C)crossroads for other end
Find an equation for the plane which passes through the point p(1,3,3) and contains the line: l:x(t)=3t,y(t)=2t,z(t)=4+3t
Please help, It's geometry