#include <stdio.h>
#define SUM 100000
int main()
{
int i=1;
float money,ave,s=0;
while(i<=1000)
{
printf("请输入捐款金额:");
scanf("%f",money);
s+=money;
if(s>=SUM)
break;
i++;
}
ave=s/i;
printf("捐款人数为%d\n捐款数目为%f\n人均捐款为%f\n",i,s,ave);
return 0;
}