C Program to Check Whether a Number is Even or Odd using If Else - C Program

C Program to Check Whether a Number is Even or Odd using If Else

#include<stdio.h>
int main()
{
	int num;
	printf("Enter the Number :");
	scanf("%d",&num);
	if(num%2==0)
		printf("%d is Even Number",num);
	else
		printf("%d is Odd Number",num);
	return 0;
}

Output - C Program to Check Whether a Number is Even or Odd using If Else

Enter the Number :13                                                                                                  
13 is Odd Number   
Compile and Run Online