Question: Using a For Loopin C# : Add Up The Odds or Evens Create an array of 6 or more integers. Then, you will prompt the

Using a For Loopin C# : Add Up The Odds or Evens Create an array of 6 or more integers. Then, you will prompt the user if they would like to see the sum of the even numbers or odd numbers from the array. For this question you do NOT have to ask the user for the values inside of the array, these can be hardcoded. Use a FOR loop to cycle through the array and find the correct sum that the user wants. *Hint- If you need help finding if it is odd or even, review the Modulus operator.

User Inputs: o Prompt the user to either see the sum of the odd or even numbers.

Result To Print Out:

o The odd numbers add up to X or The even numbers add up to X

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!