Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 416 Bytes

questions.md

File metadata and controls

13 lines (7 loc) · 416 Bytes

Day 3 Questions

  1. What is a conditional statement? Give three examples.

  2. Why might you want to use an if-statement?

  3. What is the Ruby syntax for an if statement?

  4. How do you add multiple conditions to an if statement?

  5. Provide an example of the Ruby syntax for an if/elsif/else statement:

  6. Other than an if-statement, can you think of any other ways we might want to use a conditional statement?