Testing.

Sunday, 1 January 2017

C progamming language: C program to check whether given number is even number or odd odd number.


#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("\n Enter Number to check Even or odd: ");

scanf("%d",&num);
if (num %2 == 0)
printf("\n %d Is An Even Number..! ",num);
else
printf("\n %d Is An odd Number..! ",num);
getch();
}


No comments:

Post a Comment