Eof programación
#¿Incluir? ltstdio.h gt
#¿Contiene? ltstring.h gt
#¿Contiene? ltstdlib.h gt
int? principal()
{
int? i=0,j,g;
¿Flotante? x = 0;
¿Carácter? s[20], c;
Do {
printf("¿Entrada? ¿No d? Puntuación:?", I 1
scanf(" s ", s);
if(strcmp("EOF ", s)==0)
Romper;
j = 0;
g = 1;
c = s[j];
Y (c!='\0'){
Si (? (c lt'0'?)||?(c gt9 ') amp; amp(c!='.')){
g = 0;
Romper;?
}
j;
c = s[j];
}
si(g= =0){
printf("¿Entrada? ¡¿Error?!");
}En caso contrario {
x = atof(s);
I;
}
} while(1);
if (i gt0){
printf("Promedio ? Clasificación: ? f", x/I);
}