Browse Source

finished function

remotes/origin/gaussscheSummenformel
Hendrik Sitzmann 11 months ago
parent
commit
2cc800bc6d
  1. 4
      src/gaussscheSummenformel/gaussscheSummenformel.c

4
src/gaussscheSummenformel/gaussscheSummenformel.c

@ -2,6 +2,6 @@
int gaussscheSummenformel(int n) { int gaussscheSummenformel(int n) {
int result = n * (n + 1); int result = n * (n + 1);
result = result / 2;
return result;
} }
Loading…
Cancel
Save