summaryrefslogtreecommitdiff
path: root/tex/thesis/implementation/experiments/backwards_counter.c
diff options
context:
space:
mode:
Diffstat (limited to 'tex/thesis/implementation/experiments/backwards_counter.c')
-rw-r--r--tex/thesis/implementation/experiments/backwards_counter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tex/thesis/implementation/experiments/backwards_counter.c b/tex/thesis/implementation/experiments/backwards_counter.c
new file mode 100644
index 0000000..3775031
--- /dev/null
+++ b/tex/thesis/implementation/experiments/backwards_counter.c
@@ -0,0 +1,8 @@
+int backwards_counter() {
+ int i = 100;
+ while (i > 0) {
+ i = i - 1;
+ }
+ return i;
+}
+