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