Skip to content

Instantly share code, notes, and snippets.

@adilw3nomad
Created June 3, 2019 06:36
Show Gist options
  • Save adilw3nomad/9ddaba39607268e5c17f1204b10ffdad to your computer and use it in GitHub Desktop.
Save adilw3nomad/9ddaba39607268e5c17f1204b10ffdad to your computer and use it in GitHub Desktop.
func CheckAnswer(answer string, correctAnswer string) string {
if answer == correctAnswer {
return “Correct! Well done”
} else {
return (“WRONG! Answer is: “ + correctAnswer)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment