fjsmith7166 fjsmith7166
  • 09-11-2017
  • Computers and Technology
contestada

Write a program that reads a floating-point number from the user and prints "zero", "positive" or "negative"

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 10-11-2017
```
#!/usr/local/bin/python3

foo = float( input( "Enter a number: " ) )
if( foo < 0.0 ):
    print( "negative" )
elif( foo > 0.0 ):
    print( "positive" )
else
    print( "zero" )

exit( 0 )
```

Answer Link

Otras preguntas

In the chemical process of photosynthesis, water is a A) catalyst B) enzyme C) product D) reactant
How many 25 cent coins does it take to fill a 3L jug
a drama class has a total of 33 students the number of male is 13 more than the number of females how many males and how many females are in a class​
PLS HURRY which of the following is true about nh4+? it is a polymatomic cation because it has more than one atom and a negative charge it is a polymatomic ani
Question in pictures
what cellular process is responsible for the diffusion of water across a semi permeable membrane ?
Numărul cu 289 mai mic decât 812
Which term means "to explain or translate the meaning of something"? O A. Evaluate O B. Analyze O c. Interpret O D. Critique SUBMIT
The highest authority in the United States is the (3 points) Group of answer choices Tenth Amendment, because of the supremacy clause Constitution, because of t
What is it asking MathPhys im sorry i dont know but i tried teaching myself physics but i cant