Hey guys, I'm trying to write a gradebook program in C but I can't get to validate the grades... help please!
float notas[5];
int x=0;
char opcion1;
for(x=0; x<5;x++){
do {
printf("Ingrese nota %d: ", x+1);
scanf("%f", ¬as[x]);
}
while (notas[x]>100 && notas[x]<0);}
The user must enter 5 grades. If one of them isn't between 0 to 100, the user must add another grade.