summaryrefslogtreecommitdiff
path: root/tex/thesis/implementation/experiments/nested.c
diff options
context:
space:
mode:
Diffstat (limited to 'tex/thesis/implementation/experiments/nested.c')
-rw-r--r--tex/thesis/implementation/experiments/nested.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tex/thesis/implementation/experiments/nested.c b/tex/thesis/implementation/experiments/nested.c
new file mode 100644
index 0000000..6e40a50
--- /dev/null
+++ b/tex/thesis/implementation/experiments/nested.c
@@ -0,0 +1,10 @@
+int nested() {
+ int result = 0;
+ for (int i = 0; i < 10; i = i + 1) {
+ for (int j = 0; j < 10; j = j + 1) {
+ result = result + 1;
+ }
+ }
+ return result;
+}
+