Sunday, 13 August 2017

Find Odd or Even no in C

#include"stdio.h"
main()
{
int n;
printf("enter a number");
scanf("%d",&n);
char*x[2]={"even","odd"};
printf("%s",x[n%2]);
}

No comments:

Post a Comment