Solution:-
#include<conio.h>
using namespace std;
int main()
{
int n;
cout<<"Enter the number = ";
cin>>n;
if(n/2*2==n)
cout<<"even";
else
cout<<"odd";
getch();
}
Find Tons of C++ Programming examples, projects with code. Also find books solutions.
0 Questions:
Post a Comment