#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;
	char a[20], ver;
	do
	{
	printf("\n\nInforme Nome do atleta:");
	scanf("%s", &a);
	printf("\n\nInforme Salto %i:",x);
	scanf("%f",&b);
	x++;
	g=b;
	f=b;
	b1=b;
	do
	{
	printf("\n\nInforme Salto %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;
	}
	
	d+=b;
	x++;
    }
	while(x <= 5);
	e=(d-g-f)/3;
	{
		printf("\n\n\n\n\nMedia:\n%f", e);
		printf("\n\nMaior salto:%f\n",g);
		printf("\n\nMenor salto:%f\n",f);
		printf("\n\nSalto 1:%f\n",b1);
		printf("\n\nSalto 2:%f\n",b2);
		printf("\n\nSalto 3:%f\n",b3);
		printf("\n\nSalto 4:%f\n",b4);
		printf("\n\nSalto 5:%f\n",b5);
	}
	printf("Continuar? (S ou N):");
	scanf(" %c", &ver);
    }
    while(ver == 'S');
	
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: