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 and 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 then we choose any three consecutive integers between and eg; or ; or ; 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
Sample Output
Either
Sample Input
Sample Output
Odd
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
