#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int x=1;
float b, c, d, e, f, g, b1, b2, b3, b4, b5, b6, b7;
char a[20], ver;
do
{
printf("\n\nInforme Nome do atleta:");
scanf("%s", &a);
printf("\n\nInforme Nota %i:",x);
scanf("%f",&b);
x++;
g=b;
f=b;
b1=b;
do
{
printf("\n\nInforme Nota %i:",x);
scanf("%f",&b);
if(b > g)
{
g=b;
}
else if(b < f)
{
f=b;
}
if(x == 1)
{
b1=b;
}
else if(x == 2)
{
b2=b;
}
else if(x == 3)
{
b3=b;
}
else if(x == 4)
{
b4=b;
}
else if(x == 5)
{
b5=b;
}
else if(x == 6)
{
b6=b;
}
else if(x == 7)
{
b7=b;
}
d+=b;
x++;
}
while(x <= 7);
e=(d-g-f)/3;
{
printf("Atleta: %s", a);
printf("\n\n\n\n\nMedia:\n%f", e);
printf("\n\nMaior Nota:%f\n",g);
printf("\n\nMenor Nota:%f\n",f);
printf("\n\nNota 1:%f\n",b1);
printf("\n\nNota 2:%f\n",b2);
printf("\n\nNota 3:%f\n",b3);
printf("\n\nNota 4:%f\n",b4);
printf("\n\nNota 5:%f\n",b5);
printf("\n\nNota 6:%f\n",b6);
printf("\n\nNota 7:%f\n",b7);
}
printf("Continuar? (S ou N):");
scanf(" %c", &ver);
}
while(ver == 'S');
}
To embed this project on your website, copy the following code and paste it into your website's HTML: