Even and Odd Number
#include<stdio.h>
int main()
{
int a;
printf("Enter a number : ");
scanf("%d",&a);
if(a%2==0)
{
printf("%d is an Even Number ",a);
}
else
{
printf("%d is an odd Number !!!",a);
}
return 0;
}
No comments:
Post a Comment