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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started