summaryrefslogtreecommitdiff
path: root/tex/thesis/implementation/experiments/bubble.c
blob: fa29178d4ea7054d67f7ab0fc8eec7d6820c3d65 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int bubble() {
  int k = 0;
  int i = 0;
  int j = 0;
  while (i <= 4) {
    j = 0;
    while (j <= 4) {
      j = j + 1;
      k = k + 1;
    }
    i = i + 1;
  }
  return k;
}