#include <iostream>
using namespace std;
int main() {
cout << "Enter a number: ";
int funnumber;
cin >> funnumber;
if (funnumber % 3 == 0 && funnumber % 5 == 0) {
cout << "fizzbuzz" << endl;
}
else if (funnumber % 3 == 0) {
cout << "fizz" << endl;
}
else if (funnumber % 5 == 0) {
cout << "buzz" << endl;
}
else {
cout << funnumber << endl;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: