Question: Problem Statement Your friend has secretly picked N consecutive positive integers between 1 and 1 0 0 , and wants you to guess if their

Problem Statement
Your friend has secretly picked N consecutive positive integers between 1 and 100, and wants you to guess if their sum is even or odd. If the sum must be even, output Even. If the sum must be odd, output Odd. If the sum could be even or could be odd, output Either. For example, if the input is 3, then we choose any three consecutive integers between 1 and 100(e.g.,2,3,4; or 15,16,17; or 88,89,90; etc.) and determine if the sum is odd, even, or either depending on the numbers chosen. (Hint: Sum a few sets for each possible amount of numbers to identify the patterns.)
Sample Input 1
1
Sample Output 1
Either
Sample Input 2
2
Sample Output 2
Odd

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!