chapter5
This commit is contained in:
11
DeitelC/Chapter5/isEven.c
Normal file
11
DeitelC/Chapter5/isEven.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int isEven (int num);
|
||||
|
||||
int isEven (int num) {
|
||||
if (num % 2 == 0) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user