Skip to content

Instantly share code, notes, and snippets.

Last active Dec 14, 2015
What would you like to do?
CS0110 3.4 - Multi-decision tree converted to switch/case
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
read a book
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment