How to find even and odd number in C




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

No comments:

Post a Comment