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 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
Get step-by-step solutions from verified subject matter experts
