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

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!