double fn(int n){ double f; f = 1.0/(n*(n+1)*(n+2)); return f;}void main(){ double sum = 0.0; int i =0; for(i=1;i<=20;i++) { sum = sum + fn(i); } printf("和是 %lf",sum); getche();}