fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. for( int i=1; i<101; i++)
  7. {
  8. if(i%3==0 && i%5==0)
  9. {
  10. cout << "FizzBuzz" << endl;
  11. }
  12. else if(i%3 == 0)
  13. {
  14. cout << "Fizz" << endl;
  15. }
  16. else if(i%5==0)
  17. {
  18. cout << "Buzz" << endl;
  19. }
  20. else if(i%7 == 0)
  21. {
  22. cout << "Seven" << endl;
  23. }
  24. else if(i%11==0)
  25. {
  26. cout << "Eleven" << endl;
  27. }
  28. else
  29. {
  30. cout << i << endl;
  31. }
  32. }
  33. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
1
2
Fizz
4
Buzz
Fizz
Seven
8
Fizz
Buzz
Eleven
Fizz
13
Seven
FizzBuzz
16
17
Fizz
19
Buzz
Fizz
Eleven
23
Fizz
Buzz
26
Fizz
Seven
29
FizzBuzz
31
32
Fizz
34
Buzz
Fizz
37
38
Fizz
Buzz
41
Fizz
43
Eleven
FizzBuzz
46
47
Fizz
Seven
Buzz
Fizz
52
53
Fizz
Buzz
Seven
Fizz
58
59
FizzBuzz
61
62
Fizz
64
Buzz
Fizz
67
68
Fizz
Buzz
71
Fizz
73
74
FizzBuzz
76
Seven
Fizz
79
Buzz
Fizz
82
83
Fizz
Buzz
86
Fizz
Eleven
89
FizzBuzz
Seven
92
Fizz
94
Buzz
Fizz
97
Seven
Fizz
Buzz