Skip to main content

Even Odd Number

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int num;
printf("Enter a Num:");
scanf("%d",&num);

if(num%2==0)                                                         //% is used to find remainder
printf("Entered Number is Even");
else
printf("Entered Number is Odd");

getch();
}

Comments

Popular posts from this blog