Skip to content

Instantly share code, notes, and snippets.

@biglovisa
Created May 4, 2017 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biglovisa/dcca9d820dd9d30b23b9733511415e03 to your computer and use it in GitHub Desktop.
Save biglovisa/dcca9d820dd9d30b23b9733511415e03 to your computer and use it in GitHub Desktop.
Control flow: check-ins

Control Flow

Student grades

  • Create an if/else statement which tells you if a student should get an A, B, C, or D based on their score.
    • A: 100 - 95
    • B: 94 - 85
    • C: 84 - 75
    • D: 74 or below

Where to eat breakfast?

  • Create an if/else statement which tells you if you should eat breakfast outside or inside based on the temperature.
    • If the temperature is equal to or more than 70 degrees, you eat outside
    • If the temperature is below 70 degrees, you eat inside
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment