一输入数据,光标跳入下一行,并不出现结果是怎么一回事
#include<stdio.h>#include<math.h>
int l,h;
int fi(int n)
{int d;
d=(fi(n-1))*(l-n)/(l-n+1)+h;
return d;
}
main()
{int i;
printf("please input site number and people number:\n");
scanf("%d%d",&l,&h);
for(i=0;i<l;i++)
printf("f(%d)=%d",i+1,fi(i+1));
}