AlexandrTalchuk

8.3.11

Jan 7th, 2020
52
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #include <iostream>
  3. using namespace std;
  4. double fuu(int n)
  5. {
  6.     if (n==0)
  7.         return 0;
  8.  
  9.         return 1 / (n + fuu(n - 1));
  10. }
  11.  
  12. int main()
  13. {
  14.     int n;
  15.     cout << "Vvedite zalupy" << endl;
  16.     cin >> n;
  17.     cout << fuu(n) << endl;
  18.     return 0;
  19.    
  20. }
RAW Paste Data