#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>


int main()
{
	int b=1, d, e, f, g, l, x, m, t;
	char a[10], c[10], n [30], ver, n1, n2;
	
	for(b=1; b <= 10; b++)
	{
		printf("\nInforme o Gabarito da questao %i", b);
		scanf("%s", &a[b]);
	}
	do
	{
	e=0;
	x++;
	printf("\nPronto Para Responder");
	for(l=0; l < 100; l++)
	{
		printf("\n\n\n\n\n");
	}
	
	printf("\nNome do aluno:");
	scanf(" %s",n);
	b=1;
	
	for(b=1; b <= 10; b++)
	{
	printf("\n\nResposta da questao %i", b);
	scanf("%s", &c[b]);
	
	if(c[b] == a[b])
	{
		d++;
		printf("%i", d);
		e=d-1;
	}
	else
	{
		printf("%i", d);
	}
    }
	printf("\n\nNota do aluno:%i",e);
	f=e;
	g=e;
	if(e > f && e != 0)
		{
			f=e;
			n1=n;
		}
		else if(e < g && e != 0)
		{
			g=e;
			n2=n;
		}
    t+=e;
    printf("\nMais um aluno para responder?(S ou N)");
    scanf(" %c", &ver);
    }
    while(ver == 'S');
    m=t/x;
    printf("\nMaior Nota:%i do aluno %s",f ,n1);
    printf("\nMenor Nota:%i do aluno %s",g , n2);
    printf("\nMedia:%i", m);
    printf("\nNumero de alunos:%i", x);
	
}

Embed on website

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