Skip to content

Instantly share code, notes, and snippets.

@Hackathonwave
Created October 20, 2023 09:16
Show Gist options
  • Save Hackathonwave/bf023608b5509d7c6b44b30b4c3d7628 to your computer and use it in GitHub Desktop.
Save Hackathonwave/bf023608b5509d7c6b44b30b4c3d7628 to your computer and use it in GitHub Desktop.
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