Question: Create a new program that will ask a user to enter a number repeatedly. This program will calculate 2 averages based on whether the sum
Create a new program that will ask a user to enter a number repeatedly. This program will calculate
averages based on whether the sum of digits in the inputted numbers are odd or even: avgeven average
of all inputs whose digits sum up to an even number and avgodd average of all inputs whose digits sum
up to an odd number The program will stop when the user enters a For example, and are
numbers whose digits sum up to an even number and respectively
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
