#include<stdio.h>
#include<conio.h>
void main( ) // returns no value
{
clrscr( ) ;
int num ;
printf(" Enter the number ") ;
scanf("%d", &num) ;
if(num%2 = = 0)
{
printf(" NUMBER IS EVEN ") ;
}
else
{
printf(" NUMBER IS ODD") ;
}
getch( );
}
#include<conio.h>
void main( ) // returns no value
{
clrscr( ) ;
int num ;
printf(" Enter the number ") ;
scanf("%d", &num) ;
if(num%2 = = 0)
{
printf(" NUMBER IS EVEN ") ;
}
else
{
printf(" NUMBER IS ODD") ;
}
getch( );
}
No comments:
Post a Comment