Question: Lab Scenario: In this assignment, you will design a program that adds only the even numbers provided as input. The program receives a series of
Lab Scenario: In this assignment, you will design a program that adds only the even numbers provided as input. The program receives a series of numbers from the user and keeps adding even numbers only. The program allows the user to exit when he/she provides an odd number as input. After the user provides an odd number, the program prints the sum of even numbers entered until that point. You are required to use while loop and conditional statements for this assignment. You also need to evaluate the input number for both odd and even conditions. For simplicity, please consider only natural numbers (1,2,3,etc). Do not provide any characters or strings to the program.
Python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
