PROGRAM:
#include<stdio.h>
main()
{
int a,rem;
printf("Enter
a Number\n"); scanf("%d",&a);
rem=a%2;
if(rem==0)
printf("The Given
Number is Even");
else
printf("The Given
Number is Odd");
}
OUTPUT:
Enter
a Number 13
The Given Number is Odd
No comments:
Post a Comment