```=c++ #include <iostream> using namespace std; int Fibonacci(int n) { if (n == 1 || n == 0) return 1; else { return Fibonacci(n - 1) + Fibonacci(n - 2); } } int main() { int n; cin >> n; cout << Fibonacci(n) << endl; return 0; } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up