fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. if (n % 2 == 0) {
  8. cout << "fizz";
  9. }
  10. if (n % 3 == 0) {
  11. cout << "buzz";
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
Standard output is empty