Write a Program to Check weather a number is Odd or Even



Odd, Even, test, C Program, Sumit Kar, Timus Rak







#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