Guest User

Untitled

a guest
Feb 17th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. void main() {
  2. for (int i = 0; i < 100; i++) {
  3. if (i != 0)
  4. switch (i % 15) {
  5. case 3:
  6. case 6:
  7. case 9:
  8. case 12:
  9. print("Fizz");
  10. break;
  11. case 5:
  12. case 10:
  13. print("Buzz");
  14. break;
  15. case 0:
  16. print("FizzBuzz");
  17. break;
  18. default:
  19. print(i);
  20. }
  21. else
  22. print(i);
  23. }
  24. }
Add Comment
Please, Sign In to add comment