又是水题。。看来POJ开头的都是水题啊~

 

#include <stdio.h>

int main()
{
	freopen("1.txt", "r", stdin);
	float sum = 0, t;
	int m = 0;
	while( scanf("%f", &t) != EOF )
	{
		sum += t;
		m++;		
	}
	printf("$%.2f\n", sum/m);
}

 

相关文章:

  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2022-02-12
猜你喜欢
  • 2021-10-29
  • 2022-12-23
  • 2022-01-25
  • 2021-11-10
  • 2021-10-09
  • 2022-12-23
相关资源
相似解决方案