#include<iostream.h> #include<conio.h> void main() { clrscr(); int n; cout<<"Enter a number: "; cin>>n; if(n%2==0) cout<<"\nThe number is even."; else cout<<"\nThe number is odd."; getch(); }