#include <iostream>
int main() {
int number;
cout << "Please enter the number" << endl;
cin >> number;
if ( number % 2 == 0 ) {
cout << "The number is even" << endl;
} else {
cout << "The number is odd" << endl;
}
return 0;
}
Comments
Leave a comment