#include <stdio.h> void main(void) { int i; printf("\nEnter a number (integer).. "); scanf("%d", &i); if(i & 1){ printf("%d is odd \n", i); } else { printf("%d is even \n", i); } return 0; }
No comments:
Post a Comment