Untitled

mail@pastecode.io avatar
unknown
c_cpp
6 months ago
320 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	for (int i = 1; i < 100; i++) {
		if (i % 3 == 0) {
			cout << "Fizz" << endl;
		}
		if (i % 5 == 0) {
		cout << "Buzz" << endl;
		}
		else {
			cout << i << endl;
		}
		if (i % 3 == 0 and i % 5 == 0) {
			cout << "FizzBuzz" << endl;
		}
		}
}