Untitled

 avatar
unknown
c_cpp
2 years ago
320 B
2
Indexable
#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;
		}
		}
}
Editor is loading...