Skip to content

Instantly share code, notes, and snippets.

@shanebarringer
Created September 21, 2016 22:51
Show Gist options
  • Save shanebarringer/b2611e05c19b016c2dbca881521babc3 to your computer and use it in GitHub Desktop.
Save shanebarringer/b2611e05c19b016c2dbca881521babc3 to your computer and use it in GitHub Desktop.
  • Create a script titled “going_hiking”
  • declare a variable titled 'temp'
  • Have the program print “Let’s go hiking!” if temp >= 50.
  • Otherwise have the program print “That’s WAY too cold for hiking!”

then...

  • Include an elsif branch in our code that will print "It is 23 degrees!" when the variable is 23.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment