View Code of Problem 140

#include<stdio.h>
#include<math.h>
int main()
{
	float s=0, a[14];
	int i;
	for (i = 0; i < 12; i++)
	{
		scanf("%f", &a[i]);

		s = s + a[i];
	}
	printf("$%.2f", s / 12);
	return 0;
}

Double click to view unformatted code.


Back to problem 140