C Programming
Computer Programming

Program in c to find Odd or Even number



Write a Program in c to find Odd or Even number

\* C Program to to find Odd or Even number *\

# include < stdio.h >
int   main( )
{

int   num ;
printf(" Enter a Number : ") ;
scanf("%d ", & num) ;
if (   num  % 2 == 0 )
{

printf("\n Entered Number is Even.") ;

}
else
{

printf("\n Entered Number is Odd.") ;

}
return ( 0 ) ;

}

Output of Program:

Output of Program in C to find Odd or Even number