Computer Science, asked by 916394495185, 1 day ago

write a program to enter any number and check whether that number is even Or odd​

Answers

Answered by Sammfisher
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