데블스 캠프 첫째날 피보나치수열 코드 ---- 첫번째 코드 {{{~cpp #include using namespace std; int f(int); int main() { int input; cin >> input; cout << f(input); return 0; } int f(int x) { if ( x==0 ) return x; if ( x==1 ) return x; return f(x-1) + f(x-2); } }}} ---- [데블스캠프2003/첫째날] [피보나치]