write a program to enter any number and check whether that number is even Or odd
Answers
Answered by
0
#include<bits/stdc++.h>
using namespace std;
int main(){
int n ;
cout<<"Enter any number:"<<endl;
cin>>n;
if(n%2 == 0){
cout<<"Even";
}
else
cout<<"Odd";
return 0;
}
Similar questions