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

int main()
{
	float x=1, a, b, c, d, e, f, g, ver;

	printf("\nNumero de Notas:");
	scanf("%f", &a);
	
	do
	{
	ver=0;
	f=a;
	for(x ; x <= f ; x++)
	{
	    printf("\nInforme Numero:");
	    scanf("%f",&b);
	    if(b >= 1 && b <= 10)
    	{
	    ver=0;
	    c+=b;		
        d=c/a;
        printf("\nA media dos numeros foi:%f\n\n\n\n",d);
        }
        else
        {
    	printf("\nErro: A nota deve  entre 1 e 10");
    	ver=1;
    	f++;
    	}
    }
    }
    while(ver == 1);
}

Embed on website

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