subject

4. Fill in the code so it adds all integers inputted by the user until the number -1 is inputted & then displays that sum (without the -1 added to the sum.) Also trace your code assuming the user inputs the values 4, 3, 1, -1 sum = 0 sum num
num =

while ( ):

num = int(input("Enter a positive integer (-1 to quit): "))



print(

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Why is it uncommon for users to perform searches directly in database tables? a.)users are discouraged from interacting directly with tables because they might confuse tables with spreadsheets. b.) users are discouraged from interacting directly with tables because this may result in unintended changes to source data. c.)users do not have the technical skills required to perform searches directly in database tables. d.)users do not have the permissions required to perform searches directly in database tables.
Answers: 1
question
Computers and Technology, 25.06.2019 07:50
Assignment: permutations use the permutation formula ï€Ļ ï€Đ r ! ! n n p nr ï€―  to solve each problem. be sure to show all work leading to your answer. part i: solve real-world permutation problems choose any four (4) of the following five problems to solve. for each problem a) show how the permutation formula can be used to find the answer and b) write a sentence to explain the meaning of the answer for the situation. 1. to register for online banking services at a local credit union, you need to select a four-digit personal identification number, or pin code. the digits cannot be repeated. how many ways are there to arrange four digits out of the numerals 0 through 9 to create a code?
Answers: 3
question
Computers and Technology, 25.06.2019 16:00
Ahot spot is the a. point that collides with other objects b. point an object spins around when it rotates c. first frame in an animation d. point that creates an object's events
Answers: 1
You know the right answer?
4. Fill in the code so it adds all integers inputted by the user until the number -1 is inputted &am...
Questions
question
Mathematics, 18.07.2019 01:30
Questions on the website: 13722360