#include <stdio.h>
#include<conio.h>
void main()
{
int x;
printf("Enter an integer\n");
scanf("%d",&x);
if ( x%2 == 0 )
printf("Even\n");
else
printf("Odd\n");
getch();
}
#include<conio.h>
void main()
{
int x;
printf("Enter an integer\n");
scanf("%d",&x);
if ( x%2 == 0 )
printf("Even\n");
else
printf("Odd\n");
getch();
}
No comments :
Post a Comment