summaryrefslogtreecommitdiff
path: root/tex/thesis/implementation/experiments/bubble.c
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@carlo-laptop>2012-11-27 14:11:18 +1100
committerCarlo Zancanaro <carlo@carlo-laptop>2012-11-27 14:11:18 +1100
commitc0e0ae1e0399e17b5ad5f9a22905ab352153c8b7 (patch)
treec74fbf32c3b9740d27c26751588949e06d96cc15 /tex/thesis/implementation/experiments/bubble.c
parentec585a127f8f673be9e8a09ee394571b232b1b8d (diff)
A bunch more thesis stuff.
Diffstat (limited to 'tex/thesis/implementation/experiments/bubble.c')
-rw-r--r--tex/thesis/implementation/experiments/bubble.c15
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;
+}
+