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, 23.06.2019 23:00
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a.add symmetry b.create a unified publication c.provide consistency d.save money
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
question
Computers and Technology, 24.06.2019 05:00
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
Fast answer i need for apex ! smartphones should be banned from the classroom in public schools so that students cannot cheat on test so easily? which is an example of a counter argument to the thesis above? a.the classroom is a place for learning not for making phone calls b. smartphones are useful learning tools in the modern classroom c.banning smartphones will not students pay attention to teachers any better d. banning smartphones would decreased incidents of theft
Answers: 2
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, 12.01.2021 19:20
question
Mathematics, 12.01.2021 19:20
question
Mathematics, 12.01.2021 19:20
question
Mathematics, 12.01.2021 19:20
Questions on the website: 13722362