#include <stdio.h>
#include <stdlib.h>
/* introduzir 3 notas disciplinas
matematica,portugues e ingles e a media */
main()
{
float mat, port, ing,media;
printf("introdusa nota mat\n");
scanf("%f",&mat);
printf("introdusa nota port\n");
scanf("%f",&port);
printf("introdusa nota ing\n");
scanf("%f",&ing);
media=(mat+port+ing)/3;
printf("A media e %f", media);
system("PAUSE");
}
Download

include - fontoura