diff options
author | Yann Herklotz <git@yannherklotz.com> | 2020-06-30 12:36:23 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2020-06-30 12:36:23 +0100 |
commit | 7f7ad4a7a60c9e914f1e05cb37d3166ba11bacc6 (patch) | |
tree | 51ba2d7363488038281167840b7b2c5a09e23a17 /test | |
parent | 1003cb19f2bfd50d8a832af431b0ac6b09b65050 (diff) | |
parent | f26f3887d0b0ac286c317a5425a3a4781871cfc2 (diff) | |
download | vericert-kvx-7f7ad4a7a60c9e914f1e05cb37d3166ba11bacc6.tar.gz vericert-kvx-7f7ad4a7a60c9e914f1e05cb37d3166ba11bacc6.zip |
Merge branch 'develop' into dev-nadesh
Diffstat (limited to 'test')
-rw-r--r-- | test/loop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/loop.c b/test/loop.c index b459e3a..52e4fe9 100644 --- a/test/loop.c +++ b/test/loop.c @@ -1,10 +1,12 @@ int main() { int max = 5; int acc = 0; + int b = 1; + int c = 2; - for (int i = 0; i < max; i++) { + for (int i = 0; i < max; i = i + b) { acc += i; } - return acc + 2; + return acc + c; } |