even or odd

//write c++ program to find out whether the given number is even or odd
#include <iostream>
using namespace std;
int main()
{
 int n;
 cout<<"Enter an integer:";
 cin>>n;
 if (n%2==0)
 cout<<n<<"is even.";
 else
 cout<<n<<" is odd.";
 return 0;
}
x

Comments

NOISE Smart Watch

https://trk.gonoise.in/click?campaign_id=13&pub_id=2111&p1={your-transaction-id}&p2=affiliate&source={your-sub-aff-id}&url=