Checking The Entered Number is Even Or Odd
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a;
printf("Enter a Numbers");
scanf("%d",&a);
if(a%2==0)
{
printf("Number Is even");
}
else
{
printf("Number is odd");
}
getch();
}
Output:-
Enter two Numbers2
Number Is even
Comments
Post a Comment