#include<stdio.h>
void main()
{
int a;
printf("Enter a number: ");
scanf("%d",&a);
if(a%2==0) /* Checking whether remainder is 0 or not. */
printf("Even Number");
else
printf("Odd Number");
}
#include<stdio.h>
void main()
{
int a;
printf("Enter a number: ");
scanf("%d",&a);
if(a%2==0) /* Checking whether remainder is 0 or not. */
printf("Even Number");
else
printf("Odd Number");
}
0 Comments