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

If -1 and 0 are the roots of polynomial function p(x),then find the roots of p(x^4+x^3-x^2-1)
Question 3 of 10 The area of the region enclosed by the curves y = 2 and y = x³ – 3x is given by which of the following expressions? < 2.26296 ○ A. S²1.67738
Planet alpha has the same radius and 4 times the mass of the earth?
chat… we don’t have any questions
1. You have noticed that Letter cheating in examinat become Impact in the Country. write - minister in charge of education, discussing Cause and Suggest 2. In d
peranan sultan dan sistem pentabdiran negeri negeri melayu bersekutu
find the nth term in the sequence 5,9,27,81,243,...​
simplify the following equation x-2x=
hydrogen peroxide solution is used as a bleach and to clean oil painting a solution of hydrogen peroxide contains 10g of hydrogen peroxide in every 100cm3 of s
Find the area of the shaded region. 5 cm and 80 degrees.