C Program to find Odd & Even Number

#include <stdio.h>
#include<conio.h>
 
int main()
{
   int n;
 
   printf("Enter an integer\n");
   scanf("%d", &n);
 
   if (n%2 == 0)
      printf("Even\n");
   else
      printf("Odd\n");
 
   getch();
}

Comments

Popular posts from this blog