Skip to content

Commit

Permalink
Add kattis prob oddities in C
Browse files Browse the repository at this point in the history
  • Loading branch information
iandioch committed Mar 1, 2017
1 parent 21b83cf commit 0fcc66e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions kattis/oddities/solution.c
@@ -0,0 +1,16 @@
#include <stdio.h>

int main() {
int n;
scanf("%d", &n);
int i;
for (i = 0; i < n; ++i) {
int x;
scanf("%d", &x);
if (x % 2 == 0) {
printf("%d is even\n", x);
} else {
printf("%d is odd\n", x);
}
}
}

0 comments on commit 0fcc66e

Please sign in to comment.