Write a C++ function named isEven that takes an integer parameter and returns true if the number is even, and false otherwise.
Functions
Even or odd
Report a typo
Sample Input 1:
1Sample 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
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.