Translate

Thursday, 11 October 2012


\\Program for finding the given number is even or odd

#include<iostream.h>
#include<conio.h>
void main()

    {

      clrscr();
      int n;
      cout<<"Enter the number=";
      cin>>n;
      if(n%2==0)
cout<<"\n\nGiven number is even";
      else
cout<<"\n\nGiven number is Odd";
      getch();
    }

No comments:

Post a Comment