Menu


.

Write a program to find that the number is Even or Odd.

#include< iostream.h >

#include< conio.h >

void main()

{

clrscr();

int a;

cout<<"Enter any no";

cin>>a;

if(a%2==0)

cout<<"It is even";

else

cout<<"It is odd";

getch();

}




Enjoy our courses Today