C++ Program to Check Even Or odd
#include <iostream> using namespace std; int main() { int a; cout<<"Enter any number : "; cin>>a; if(a%2==0) cout<<"The number is even"; else cout<<"The number is odd"; return 0; }

#include <iostream> using namespace std; int main() { int a; cout<<"Enter any number : "; cin>>a; if(a%2==0) cout<<"The number is even"; else cout<<"The number is odd"; return 0; }
Course Outline BSIT 2 year Program First Semester Outline Second Semester Outline Third Semester Outline ...
Post a Comment