#include <stdio.h> void main() { int a,m=1,n=1,p,q; float b; printf("输入准确度\n"); scanf("%d",&q); for(p=1;p<=q;p++) {p=n; n=m+p; m=p; b=m*1.0/n; printf("a=%f\n",b); } }