aboutsummaryrefslogtreecommitdiff
path: root/semestr-4/ask/lista8/even.c
blob: 5bf8606c3e0973844614192e076dbfd7d5576f5a (plain)
1
2
3
4
5
6
7
8
int is_odd(long n);

int is_even(long n) {
  if (n == 0)
    return 1;
  else
    return is_odd(n - 1);
}