From c0e0ae1e0399e17b5ad5f9a22905ab352153c8b7 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Tue, 27 Nov 2012 14:11:18 +1100 Subject: A bunch more thesis stuff. --- tex/thesis/implementation/experiments/bubble.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tex/thesis/implementation/experiments/bubble.c (limited to 'tex/thesis/implementation/experiments/bubble.c') 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; +} + -- cgit v1.2.3