C++ Program To Check Input Number Is Even Or Odd

      No Comments on C++ Program To Check Input Number Is Even Or Odd
#include<iostream.h>
#include<conio.h>
void  main()
{
 int num;
 cout<<"Enter Number";
 cin>>num;
 if(num%2==0)
 {
 cout<<"Number is Even";
 }
 else
 {
  cout<<"Number is Odd";
 }
 getch();
 }

OUTPUT:-

scanfcode

Leave a Reply

Your email address will not be published. Required fields are marked *