}
/* Calculate total time to play the game in seconds)*/
time_taken = (clock() - time_taken) / CLOCKS_PER_SEC;
/* Output the game score */
printf("\n\n Your score is %d", --counter * 100 / time_taken);
fflush(stdin);
/* Check if new game required*/
printf("\nDo you want to play again (y/n) ");
scanf("%c", &another_game);
}while(toupper(another_game) == 'Y');
return 0;
}