I have written this program, however, I have not been able to get it to run. I actuall compiled this program in two different steps. I added a line to clear the buffer and then I compiled the program. The program worked the way it was supposed to. I deleted the files, and added the two print statements and received two syntax error messages. I don't see where I am missing a ')'. Have I put something in the wrong place? Also, I wanted to get an average for the scores, but I couldn't get that to work either. Below is the code and error messsages.
int main (void)
int hisub = 0;
int lowsub = 0;
int total = 0;
/*int average = 0; ?*/
for (sub = 0; sub<10; sub++)
printf("Enter Name: ");
printf("Please enter score for %s ", name[sub]);
printf("Lowest score is %d received by %s\n",score[lowsub],name[lowsub]);
printf("Highest score is %d received by %s\n"score[hisub],name[hisub]);
a:\scores.c(30) : error C2146: syntax error : missing ')' before identifier 'score'
a:\scores.c(30) : error C2059: syntax error : ')'