Knowing that an even number added to an even number results in an even number, an odd number added to an odd number results in an even number, and that an odd number added to an even number results in an odd number, how would i write a logic statement that will predict if the sum of any two integers is even or odd? The algorithm doesn't need to test for the actual sum, but just show if the sum of the two numbers will be an even or an odd number.
Bookmarks