#include<stdio.h>
#include<conio.h>
void main()
{
int x,temp;
clrscr();
printf("\n\tInput a positive integer:^");
scanf("%d",&x);
temp =x%2;
if(temp==0)
printf("\n\n\t%d is an EVEN Number.",x);
else
printf("\n\n\t%d is an ODD Number.",x);
getch();
}
No comments:
Post a Comment