Answer to Question #207814 in Electrical Engineering for sarah

Question #207814

Write and execute a PYTHON program to perform the following tasks.

1.Program to input 10 numbers and find the number of positive and negative numbers.


1
Expert's answer
2021-06-17T07:37:34-0400

num = float(input("Input a number: "))

if num > 0:

print("It is positive number")

elif num == 0:

print("It is Zero")

else:

print("It is a negative number")


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS