Question: Modify the first two lines of code so that it can read and sum three numbers instead of two number. Numbers: -5, 180, and -17

Modify the first two lines of code so that it can readModify the first two lines of code so that it can read and sum three numbers instead of two number. Numbers: -5, 180, and -17

# This program reads two numbers and prints their sum: int(input()) int(input()) print(a + b) 2 b 3 4 5 # Can you change it so it can read and sum three numbers? 6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!