Question: Write a Python program that reads 6 integers and then finds and prints the sum of the even and odd integers. Use a while loop
Write a Python program that reads 6 integers and then finds and prints the sum of the even and odd integers.
Use a while loop to calculate. Allow the user to repeat the program(use a while loop).
Please enter 6 integers: >1 >2 >3 >4 >5 >6 Even sum: 12 odd sum: 9 Do you wish to repeat this program? [y) >y Please enter 6 integers: >11 >12 >13 >14 >15 >16 Even sum: 42 odd sum: 39 Do you wish to repeat this program? (y) >n Done
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
