diff options
Diffstat (limited to 'tex/thesis/implementation/experiments/bubble.c')
-rw-r--r-- | tex/thesis/implementation/experiments/bubble.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tex/thesis/implementation/experiments/bubble.c b/tex/thesis/implementation/experiments/bubble.c new file mode 100644 index 0000000..fa29178 --- /dev/null +++ b/tex/thesis/implementation/experiments/bubble.c @@ -0,0 +1,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; +} + |