/* Evenodd.c (c) Kari Laitinen http://www.naturalprogramming.com/ 2013-11-20 File created. 2013-11-20 Last modification. */ #include int main() { int integer_from_keyboard ; printf( "\n This program can find out whether an integer" "\n is even or odd. Please, enter an integer: " ) ; scanf( "%d", &integer_from_keyboard ) ; if ( ( integer_from_keyboard % 2 ) == 0 ) { printf( "\n %d is even. \n", integer_from_keyboard ) ; } else { printf( "\n %d is odd. \n", integer_from_keyboard ) ; } }