subject

Write a while loop to calculate the sum of all the numbers the user inputs, until they put in -1. This means you will need to keep asking the user for a number to add to the sum until they put it in -1.

Sample Run:
Put in your number to add: 3
Your sum is 3.
Put in your number to add: 11
Your sum is 14.
Put in your number to add: 15
Your sum is 29.
Put in your number to add: -1

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:40
"it security policy enforcement and monitoring" respond to the following: describe how monitoring worker activities can increase the security within organizations. describe the rationale that managers should use to determine the degree of monitoring that the organization should conduct. explain the extent to which you believe an organization has the right to monitor user actions and traffic. determine the actions organizations can take to mitigate the potential issues associated with monitoring user actions and traffic.
Answers: 3
question
Computers and Technology, 23.06.2019 11:50
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
question
Computers and Technology, 24.06.2019 21:30
Aobject is used for displaying the results of a question based on stored data. a. query b. report c. table d. form
Answers: 2
question
Computers and Technology, 25.06.2019 05:10
Write a program that asks for 'name' from the user and then asks for a number and stores the two in a dictionary (called 'the_dict') as key-value pair. the program then asks if the user wants to enter more data (more data (y/n)? ) and depending on user choice, either asks for another name-number pair or exits and stores the dictionary key, values in a list of tuples and prints the list. note: ignore the case where the name is already in the dictionary. example: name: pranshu number: 517-244-2426 more data (y/n)? y name: rich number: 517-842-5425 more data (y/n)? y name: alireza number: 517-432-5224 more data (y/n)? n [('alireza', '517-432-5224'), ('pranshu', '517-244-2426'), ('rich', '517-842-5425')]
Answers: 3
You know the right answer?
Write a while loop to calculate the sum of all the numbers the user inputs, until they put in -1....
Questions
question
Mathematics, 07.06.2021 01:00
question
Mathematics, 07.06.2021 01:00
question
Arts, 07.06.2021 01:00
question
Social Studies, 07.06.2021 01:00
Questions on the website: 13722367