#include <cstdio> int f(int n) { if(n==1) return 1; if(n==2) return 2; return f(n-1)+f(n-2); } int main() { int n; scanf("%d",&n); printf("%d",f(n)); return 0; }
To embed this project on your website, copy the following code and paste it into your website's HTML: