It is supposed to get 10 names and for each name there should be an input of 4 scores but it only works on the first loop and the function "gets" does not work on the next following loops.
#include <conio.h>
int main(){
int name_ctr,score_ctr,score;
char name[50];
for(name_ctr=1; name_ctr<=10; name_ctr++){
printf("Enter the student's name: ");
gets(name);
for(score_ctr=1;score_ctr<=4;score_ctr++){
printf("Enter the studet's scores: ");
scanf("%d",&score);
}
}
return 0;
}