AKM
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment