Question: Even or Odd Sum Write a Python program that: Asks the user to enter 5 integers, one at a time. Calculates the sum of all

Even or Odd Sum
Write a Python program that:
Asks the user to enter 5 integers, one at a time.
Calculates the sum of all the even numbers and the sum of all the odd numbers
entered by the user.
Prints the two sums at the end.
Example:
Enter 1st number: 2
Enter 2nd number: 5
Enter 3rd number: 8
Enter 4th number: 7
Enter 5th number: 10
Output:
Sum of even numbers: 20
Sum of odd numbers: 12

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 Programming Questions!