Declare another variable cumilative_total which will hold the cumilative value.
Do something like this at the end of the inner while loop:
score = MAX_ATTEMPTS - attempts ;
cumilative_score += score ;
printf ("The score of this round is %d.", score) ;
score = 0 ; // reset the score