diff options
author | Carlo Zancanaro <carlo@carlo-laptop> | 2012-11-27 14:11:18 +1100 |
---|---|---|
committer | Carlo Zancanaro <carlo@carlo-laptop> | 2012-11-27 14:11:18 +1100 |
commit | c0e0ae1e0399e17b5ad5f9a22905ab352153c8b7 (patch) | |
tree | c74fbf32c3b9740d27c26751588949e06d96cc15 /tex/thesis/implementation/experiments/nested.c | |
parent | ec585a127f8f673be9e8a09ee394571b232b1b8d (diff) |
A bunch more thesis stuff.
Diffstat (limited to 'tex/thesis/implementation/experiments/nested.c')
-rw-r--r-- | tex/thesis/implementation/experiments/nested.c | 10 |
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; +} + |