Program to check even-odd


#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("enter any no.");
scanf("%d",&n);
if(n%2==0)
printf("the entered no. is even");
else
printf("the entered no. is odd");
getch();
}

0 comments:

Post a Comment