12345
cin>>number; if (number%2==1) cout<<"The number you entered is an Odd number"; else cout<<"The number you entered is an Even number";
1234567
int n; cout<<"\n Enter number:"; cin>>n; if(n%2==0) cout<<"\n the number is even"; else cout<<"\n the number is odd";