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

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