#include<bits/stdc++.h>
      using namespace std;
      int F(int N)
      {
          if (N <= 1)
             {
              return N;
             }
          return F(N-1) + F(N-2);
      }
      int main ()
      {
          int N = 5;
          cout << F(N);
          return 0;
      }
      
      Cpp language logo

      fibonacci

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.