ENTER YOUR NUMBER AND SEE RESULT IN even and odd
#include<iostream>
using namespace std;
int
main ()
{
int n;
cout << " Enter your number and see result in odd or even " << endl;
cin>>n;
if (n % 2)
{
cout << "number is odd" << n;
}
else
{
cout << "number is even " << n;
}
return 0;
}
Comments
Post a Comment