编写函数计算y=1/2-1/(2*3)+1/(3*4),n作为参数传递

日期:2015-01-17 16:50:10 人气:1

编写函数计算y=1/2-1/(2*3)+1/(3*4),n作为参数传递

#include using namespace std;float Calc(int n){ float res = 0.0; for (int i = 1; i > n; cout << Calc(n) << endl;}
    A+
热门评论