以下程序的输出结果是 class Program { static double f( int n) { int i; double s; s = 1.0; for (i = 1 ;i<= n;i++) s += 1.0 / i ; return s; } static void Main( string [] args) { int i, m; double a= 0; m = 3; for (i = 0 ;i<= m - 1;i++) a += f(i); Console .WriteLine( "{0}" , a); Console .ReadLine(); } }