Question: Correct the following code so that it reads and finds the sum of 20 numbers: count = 0 sum = while count 0): count

Correct the following code so that it reads and finds the sum 

Correct the following code so that it reads and finds the sum of 20 numbers: count = 0 sum = while count 0): count = count-1 print(count)

Step by Step Solution

3.32 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

15 count 0 sum 0 while count 2 insted of 2 use 20 as given in problem num intinputEnter next number ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!