Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- double fuu(int n)
- {
- if (n==0)
- return 0;
- return 1 / (n + fuu(n - 1));
- }
- int main()
- {
- int n;
- cout << "Vvedite zalupy" << endl;
- cin >> n;
- cout << fuu(n) << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment