#include <iostream>
using namespace std;
void evenOdd(int number){
if(number%2==0){
cout<<"The number is EVEN\n";
}else{
cout<<"The number is ODD\n";
}
}
int main(){
int number;
cout<<"Enter the number: ";
cin>>number;
evenOdd(number);
cin>>number;
return 0;
}
Comments
Leave a comment