aboutsummaryrefslogtreecommitdiff
path: root/semestr-4/ask/lista8/relo3.c
blob: 6aca7b699e4379670df08c137f1e40322633988e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int relo3(int val) {
  switch (val) {
    case 100:
      return val;
    case 101:
      return val + 1;
    case 103:
    case 104:
      return val + 3;
    case 105:
      return val + 5;
    default:
      return val + 6;
  }
}