From 6bde0bb72a4f54431bcfea743f69edada4c513c1 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 1 Jul 2020 01:40:30 +0100 Subject: Fix to comments --- data/accumulator.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 data/accumulator.c (limited to 'data/accumulator.c') diff --git a/data/accumulator.c b/data/accumulator.c new file mode 100644 index 0000000..7d78a61 --- /dev/null +++ b/data/accumulator.c @@ -0,0 +1,7 @@ +int main() { + int x[3] = {1, 2, 3}; + int sum = 0, incr = 1; + for (int i = 0; i < 3; i=i+incr) + sum += x[i]; + return sum; +} -- cgit