标签:include pre 描述 nbsp clu oat printf stdio.h bsp
10
16.48
1 #include "stdio.h" 2 3 int main(int argc, char const *argv[]) 4 { 5 6 int N, m = 2, n = 1, i; 7 float s = 0; 8 scanf("%d", &N); 9 for(i = 0; i < N; i++) 10 { 11 int t; 12 s += (float)m / n; 13 t = m; 14 m = n + m; 15 n = t; 16 } 17 18 printf("%.2f\n", s); 19 return 0; 20 }
标签:include pre 描述 nbsp clu oat printf stdio.h bsp
原文地址:http://www.cnblogs.com/hello-lijj/p/7828409.html