Even or odd

Report a typo

Write a C++ function named isEven that takes an integer parameter and returns true if the number is even, and false otherwise.

Sample Input 1:

1

Sample Output 1:

1 is not even.
Write a program in C++
bool isEven(int number) {
//write your code here
}

Create a free account to access the full topic