Quote:
but what i have post only shows Failed with 7 incorrect answer
Because the part that show the list of incorrect answers is missing in your code.
1) you need to choose where to add the code for list of incorrect answers.
2) Just as you checked each answer to count correct and incorrect, you have to check them again and print the number of each incorrect ones.
foreach (char answer in useranswers)
Advice: Never use a
for each
loop to scan 2 arrays, it only makes code harder to read and do not save the counter of the loop, you handle it by yourself manually.
In this case a
for
loop will make obvious that you are matching the same positions of both variables.