12345678910111213
#include <iostream> using namespace std; int recursion(int x); int main() { cout<<recursion(7); } int recursion(int x) { if(x==1||x==0) return x; //else return recursion(x-1)+recursion(x-2); whats happening here? }
else return recursion(x-1)+recursion(x-2);
if(x==1||x==0) return x;
rec(7) rec(6) + rec(5) rec(5) + rec (4) rec(4) + rec(3) //etc