Created
June 3, 2019 06:36
-
-
Save adilw3nomad/9ddaba39607268e5c17f1204b10ffdad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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