Question: beed gelp understanding Debug a function called SumIsEven() which takes two integer inputs and returns true if and only if the sum of the two
Debug a function called SumIsEven() which takes two integer inputs and returns true if and only if the sum of the two values is an even number if the sum of the input values is an odd number, then the function must return false Example: SumIsEven(3, 5) should return true SumisEven should not throw an exception The function prototype is bool SumIsEvenant wint b) START by correcting the syntax error(s). It any, code.cpp New 1. bool SumIsEven(int a, int b) { 2. (Ca a) 2 - 2) 3 return false; 4 else{ 5 return true; 6 } 7}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
