float func1(int n) { // input condition: n >= 0 if (n > 0) return 1/n + func1(n-1); else return 0; }