write the c++program to accept a number from the user If odd or even NUMBER
Answers
Answered by
0
Answer:
This is your answer mark me brainliest:-
#include <iostream>
using namespace std;
int main() {
int a;
cout<<"Enter Number:- ";
cin>>a;
if(a%2==0){
cout<<"Even";
} else{
cout<<"Odd";
}
return 0;
}
Explanation:
Similar questions