Question: Upon starting, the program must ask the user to input its candidate number. In this brief, the candidate number 2 5 6 7 8 3

Upon starting, the program must ask the user to input its candidate number. In this brief, the candidate number 256783 is used as an example. Assign each digit to a variable, e.g. s0=2, s1=5, s2=6, s3=7, s4=8, and s5=3. The program will then show the even numbersand their average as well as the odd numbers and their average. If the sum of even numbers is greater than 20, display the sum of the numbers to the power of 3, otherwise display the square root of the sum(15

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!