diff options
author | Yann Herklotz <git@yannherklotz.com> | 2020-10-09 10:10:10 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2020-10-09 10:10:10 +0100 |
commit | 81e3160888df02e23fd6ff294cdab3a50f0bf3c1 (patch) | |
tree | d1566ebe3b72dbbf400ba2b87b1ea2279185e493 /data/accumulator.c | |
parent | 8cde91d3d3d7cd63c0944f75af749d59b1f35d1a (diff) | |
download | oopsla21_fvhls-81e3160888df02e23fd6ff294cdab3a50f0bf3c1.tar.gz oopsla21_fvhls-81e3160888df02e23fd6ff294cdab3a50f0bf3c1.zip |
Make figures fit onto the page
Diffstat (limited to 'data/accumulator.c')
-rw-r--r-- | data/accumulator.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/data/accumulator.c b/data/accumulator.c index 7d78a61..007ae2b 100644 --- a/data/accumulator.c +++ b/data/accumulator.c @@ -1,7 +1,9 @@ int main() { int x[3] = {1, 2, 3}; int sum = 0, incr = 1; - for (int i = 0; i < 3; i=i+incr) + for (int i = 0; + i < 3; + i=i+incr) sum += x[i]; return sum; } |