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