Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

use python program to allow the user to enter a sequence of nonnegative numbers. The user ends the list with a negative number. At the end the sum of...

use python program to allow the user to enter a sequence of nonnegative numbers. The user ends the list with a negative number. At the end the sum of the nonnegative numbers entered is displayed. The program prints zero if the user provides non-nonnegative numbers.

Sample output:

Enter numbers to sum, negative number ends list:Enter: 2

Enter: 5

Enter: 9

Enter: -1

Sum = 16

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question