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 is the dimension formula of power and pressure​
Read the quote from James Madison. If men were angels, no government would be necessary. . . . In framing a government which is to be administered by men over m
efeffefeffffffffffffffffffffffffffffffff
Can you guys help a guy out? :D
This question has 2 parts: 1. List some important ideas that walk two moons includes. Why did you choose those ideas2. Tell how using a Reading Role helped you
Need this done ASAP!!!! Which country has the best education and why? Write two paragraphs explaining why.
one of the features that distinguish interpersonal communication from impersonal exchanges is interdependence. true or false
Brainliest for correct answer! :)
PICTURE BELOW / Who created this work of art? Pablo Picasso Pierre-Auguste Renoir Vincent van Gogh Wassily Kandinsky
14. On January 1, Nick Co. purchased a delivery truck for $60,000. The truck's salvage value is $2,000, and its estimated useful life is 10 years. The productiv