Timeline for Sum of all integers from 1 to n
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Oct 17, 2019 at 0:17 | comment | added | dingledooper |
also change (n+1) to -~n : #define F(n)-~n*n/2
|
|
Jul 24, 2017 at 19:09 | history | edited | user230118 | CC BY-SA 3.0 |
Fixed case and removed semicolon.
|
Jul 23, 2017 at 16:18 | comment | added | Adalynn | Um ... actually the first two solutions don't work... C is case sensitive! | |
Jul 19, 2017 at 17:23 | comment | added | Adalynn |
And for the "code and math" section, you don't need the semicolon after the } .
|
|
Jul 19, 2017 at 16:44 | history | edited | user230118 | CC BY-SA 3.0 |
Added missing semicolon
|
S Jul 19, 2017 at 15:09 | history | suggested | user65167 | CC BY-SA 3.0 |
Header was small
|
Jul 19, 2017 at 14:54 | review | Suggested edits | |||
S Jul 19, 2017 at 15:09 | |||||
Jul 18, 2017 at 23:13 | comment | added | Uriel |
eliminate spaces: #define F(N)(n+1)*n/2 , F(N){return(n+1)*n/2};
|
|
Jul 18, 2017 at 22:30 | history | answered | user230118 | CC BY-SA 3.0 |