PROGRAM ON FINDING A NUMBER IS EVEN OR ODD

#include<iostream.h>
#include<conio.h>
void main()
{ int n,i;
  clrscr();
  cout<<"Enter the no.";
  cin>>n;
  if(n%2==0)
  {
    cout<<"Number is Even";
  }
  else
  {
    cout<<"Number is odd";
  }
  getch();
}

Comments

Popular Posts