Commit 829bb1c5 by Tobias Langer

bla

parent 328ed4b8
......@@ -5,7 +5,11 @@
int sum(int n)
{
return ((n + 1) * n) / 2;
int sum = 0;
for(int i = 1; i <= n; i++) {
sum += i;
}
return sum;
}
void usage(const char* app_name, const char* err_string)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment