#include<stdio.h>
int main()
{
int n;
printf("enter a number\n");
scanf("%d",&n);
if(n%2==0)
printf("even \n);
else
printf("odd\n);
return 0;
}
#include<stdio.h>
int main()
{
int n;
printf("enter no \n");
scanf("%d",&n);
if(n&1==1)
printf("odd\n");
else
printf("even\n");
return 0;
}
No comments:
Post a Comment