Test whether given number is even or odd if it is below 100.


  

#include<stdio.h>

void main()
{
int n ;
printf("Enter any integer number: ") ;
scanf("%d", &n) ;
if ( n < 100 )
{
printf("Given number is below 100\n") ;
if( n%2 0)
printf("And it is EVEN") ;
else
printf("And it is ") ;
}

printf("Given number is not below 100") ;

}

1.GIF