Thursday, 21 January 2016

// // Leave a Comment

EVEN AND ODD

C++ Program for Checking Number Is Even or Odd

#include<iostream>
using namespace std;
int main() 
{
int number;
cout<<"Please enter the number: \n";
cin>>number;
if (number % 2 == 0)
cout<<"\nThe number is EVEN.\n";
else
cout<<"\nThe number is ODD.\n";
system("pause");
}





0 comments:

Post a Comment