/cs0110-3.4-mulit-decision-tree Secret
Last active
December 14, 2015 02:21
CS0110 3.4 - Multi-decision tree converted to switch/case
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
if ( weatherCondition == 'sunny' ) | |
go for a walk | |
else if ( weatherCondition == 'raining' ) | |
dance in the rain | |
else if ( weatherCondition == 'foggy' ) | |
sound the fog horn | |
else if ( weatherCondition == 'snowing' ) | |
build a snowman | |
else | |
read a book |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment