Friday 4 September 2015

even or odd

#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();
}

No comments:

Post a Comment