Question: design the flowchart and write the c program You are required to design and develop a C program that can store up to 50 integers,

design the flowchart and write the c program design the flowchart and write the c program You are required to

You are required to design and develop a C program that can store up to 50 integers, print them in reverse and sum all the odd and even numbers separately. The program should ask user to first key in how many integers he/she would like to enter. Using a repetition structure (use a for loop), prompt user to enter the desired amount of integers into an array, then total up odd and even numbers separately. The program should then use another repetition structure to print user's input in reverse. Finally, print out the total of odd and even integers at the end. The example output is shown in Figure 5. How many number would you like to enter (maximum 50 numbers only): 10 Enter number 1: 2 Enter number 2: 3 Enter number 3: 6 Enter number 4: 5 Enter number 5: 4 Enter number 6: 4 Enter number 7: 8 Enter number 8: 18 Enter number 9: 21 Enter number 10: 3 You entered numbers in reverse = 3 21 18 8 4 4 5 6 3 2 The sum of all odd numbers = 32 The sum of all even numbers = 42 End of Program

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!