/* Calcula a media geral de toda a turma composta por 30 alunos */
/* Media: Soma (acumula) as 30 notas e depois divide por 30     */
#include <stdio.h>
#include <stdlib.h>

main()			
{
	float Nota, Soma_Total, Media;
	int   c;

	Soma_Total = 0.0;
	for  (c= 1; c<= 30; c++)
	{ 
 		printf("Digite a Nota: ");
 		scanf("%f",&Nota);    
		Soma_Total = Soma_Total + Nota;   /* Acumula! */  	
	} 

	printf ("\nMedia = %.2lf\n", Soma_Total / 30.0);
	
	system("PAUSE");
	return 0;
}
