ok this is not my code put one of the guys i am in group with.

his error is on the last bracet could some one help us out as what to look at all the things I have learned from all of you.

Code:
#include <stdio.h>
#include <string.h>

   int main(int argc, char *argv[])
{

    char studname[30];
    int grade=0;
    int assignment=0;
    int gradeavg=0;
  
    do
    {
     printf("What is the student's name? ");
     scanf("%s",studname);
    
     for(assignment=1;assignment<=5;assignment++)  //getting grades 1-5
         {
         printf("What is the score for %s's assignment #%d?",studname,assignment);
         scanf("%d",&grade);
         gradeavg=gradeavg+grade;
         }
    while(strcmp(studname,"bye")==0);//ending loop when studname is "bye"
             {
             gradeavg=gradeavg/5;
             printf("%s's average is %d. \n",studname,gradeavg);//printing gradeavg
             }
    
  system("PAUSE");
  return (0); 
}
}
}