Code for checkanswer

1 answer

bool checkAnswer(string userAnswer, string correctAnswer) {
return userAnswer == correctAnswer;
}