Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. var integer = 3
  2. switch integer {
  3. case 4:
  4. print("Four.")
  5. fallthrough
  6. case 3:
  7. print("Three.")
  8. fallthrough
  9. case 2:
  10. print("Two.")
  11. fallthrough
  12. case 1:
  13. print("One.")
  14. fallthrough
  15. default:
  16. print("Done.")
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement