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

colby wants to set sqaure tiles on the top of a box the top of the box is a rectangle 71/2 inches long and 51/2 inches wide how many 1/2 inch tiles would he nee
if f(x)=3x+7 and g(x)=2x-5 find g(f(-3))A. -26 B.-9 C. -1 D. 10
i need a diagram for how a scrap heap magnet works
what is 1/2 plus 9/10
a bottle contains 12 red marbles and 8 blue marbles. A marble is chosen at random and not replaced. Then a second marble is chosen at random. Determine the prob
How was society organized in the Middle Ages?
How do you solve x²-10x+9=0 by completing the square?
A swimming pool  20 m long and 10 m wide is surrounded by a deck of uniform width. The total area of the swimming pool and the deck is 704 m^2. Find the width o
what type of monkey starts with an h?
What is significant about Gatsby keeping watch over Daisy at the end of the chapter? In the Great Gatsby