Disqus Shortname

Sunday, August 16, 2015

Program: Find Even or Odd



#include <stdio.h>

main() {

int n;

printf("Enter an integer\n");
scanf("%d", &n);

if ((n / 2) * 2 == n)
printf("Even\n");
else
printf("Odd\n");

return 0;

}

/*-via Programming Hub for Android, a top rated Programming App on Google Play

https://play.google.com/store/apps/details?id=com.freeit.java*/


No comments:

Post a Comment