C Program To Check Input Number Is Even or Odd

      No Comments on C Program To Check Input Number Is Even or Odd
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int x;
printf("Enter Number:-\n");
scanf("%d",&x);
if(x%2==0)
 {
  printf("Number is even");
 }
 else
 {
 printf("Number is odd");
 }
 getch();
}

OUTPUT:-

scanfcode

Leave a Reply

Your email address will not be published. Required fields are marked *