Created
October 20, 2023 09:16
-
-
Save Hackathonwave/bf023608b5509d7c6b44b30b4c3d7628 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
void main() { | |
String suspect = "Wisdom Effiong"; | |
switch(suspect) { | |
case "Wisdom Effiong": | |
// execute this code block if the suspect is Wisdom Effiong | |
print("Wisdom Effiong is the culprit"); break; | |
case "Endurance Uko": | |
// execute this code block if the suspect is Endurance Uko | |
print("Endurance Uko is the culprit"); | |
break; | |
case "Simeon Edet": | |
print("Simeon Edet is the culprit"); | |
// execute this code block if the suspect is Simeon Edet | |
break; | |
default: | |
print("Please provide a suspect!"); | |
// execute this code if no suspect is provided | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment