#include<iostream.h> using namespace std; float suma(int n) { if (n==0) return 0; else return suma(n-1) + 1.0/n; } int main() { cout<<suma(5); system("pause");; return 0; }