Untitled
unknown
c_cpp
10 months ago
427 B
1
Indexable
Never
#include <iostream> using namespace std; int main() { int i, a; cin >> a; for (i = 1; i <= a; i++) { if (i % 3 == 0 && i % 5 == 0) cout << " FizzBuzz "; else if (i % 5 == 0) cout << " Buzz "; else if (i % 3 == 0) cout << " Fizz "; else cout << i << " "; } }