Posts

Showing posts with the label Even/Odd code in cpp

Even/Odd Number Checking Code in CPP

Image
Find The Digit ODD And EVEN via Cpp programming? #include<iostream> #include<conio.h> using namespace std; int main() { int y; cout<<"Enter Num";cin>>y; if(y%2==0) cout<<"Even Num"; else { cout<<"Odd Num";     } getch (); } Output Result By Entering Odd Digit By Entering Even Digit