Program
#include<stdio.h>
int main()
{
int a;
printf("Enter the number:");
scanf("%d",&a);
if(a%2==0) // Here a value equal to Zero.
{
printf("The value is even");
}
else
{
printf("The Number is Odd");
}
}
printf("The value is even");
}
else
{
printf("The Number is Odd");
}
}
Output
Enter the number:4
the value is even.
Enter the another is :3
the value is odd.
No comments:
Post a Comment