Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Find Odd or Even Using Conditional Operator in C

#include<stdio.h>
 
main()
{
   int n;
 
   printf("Enter an integer\n");
   scanf("%d",&n);
 
   n%2 == 0 ? printf("Even number\n") : printf("Odd number\n");
 
   return 0;
}