Write a Program of Even Odd Numbers.
#include <iostream.h> #include <conio.h> void main() { clrscr(); int n; cout<<"enter a number:"; cin>>n; if(n%2==0) { cout<<"the number is even"; } else { cout<<"the number is odd"; } getch(); }
OUTPUT:
(Visited 243 times, 1 visits today)
Written by:
I enjoy the article