Last active
April 25, 2016 12:34
-
-
Save jen6/c06dcb898f5bccf1c2c1e4f4bf2ab7e1 to your computer and use it in GitHub Desktop.
오늘의 뻘짓 한줄로 1부터 argc까지의 합 구하기
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| int main(int n) {return (n == 0) ? 0 : n + main(n - 1);} |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
D:\egutjugut\arduino\motion\ConsoleApplication1\Debug>ConsoleApplication1.exe 1 1 1 1 1 1 1 1 1
D:\egutjugut\arduino\motion\ConsoleApplication1\Debug>el
55