unknown152714 unknown152714
  • 03-11-2020
  • Computers and Technology
contestada

Input a number and find the square root only if the number entered is greater than or equal to zero.

Respuesta :

Cytokine
Cytokine Cytokine
  • 03-11-2020

number = float(input("Enter a number: "))

if number >= 0:

   print(number**0.5)

I hope this helps!

Answer Link

Otras preguntas

Give a recursive algorithm for finding the sum of the first n odd positive integers.
What is the difference between "Herr" and "Herrn"?
amy wants to carpet a room that is 12 feet by 8 feet. how many square yards of carpet will she need to complete the room?
how do i find the angles on a kite?
Write expression using the distributive property to find the product of 7 times 63
PLEASE HELP I GIVE THANKS
An archer’s arrow follows a parabolic path. The height of the arrow f(x) is given by f(x) = -16x^2 + 200x + 4, in feet. Find the maximum height of the arrow.
how do you know 8 thousandths is less than 1 hundredths
how do i find the angles on a kite?
one-third of the fish in Liam's fish tank were added today. Half of the other fish were a gift to Liam last week. the other 9 came from Liam's old fish tank.