Open raidelypaulino opened 2 months ago
using namespace std;
int main() {
for(int i = 1; i <= 100; i++) { cout << i << endl; if(i % 3 == 0) cout << "Fizz" << endl; if(i % 5 == 0) cout << "buzz" << endl; if(i % 3 == 0 && i % 5 == 0) cout << "Fizzbuzz" << endl; } return 0;
}
Así lo solucione en C++
include
using namespace std;
int main() {
}