View Code of Problem 140

#include <stdio.h>
using namespace std;

int main()
{
	float a;
	int t = 12;
	float sum = 0;
	while (t--) {
		scanf("%f", &a);
		sum += a;
	}
	printf("$%.2f\n", sum / 12); // $fuhao 

	return 0;
}

Double click to view unformatted code.


Back to problem 140