Untitled

mail@pastecode.io avatar
unknown
c_cpp
10 months ago
311 B
1
Indexable
Never
#include <iostream>
#include <string>

int main() {
	std::string s = "";

	for (int i = 0; i < 101; i++) {
		if (i % 3 == 0) {
			std::cout << "Fizz";
		}
		if (i % 5 == 0) {
			std::cout << "Buzz";
		}
		if (!(i % 3 == 0 || i % 5 == 0)) {
			std::cout << i;
		}
		std::cout << std::endl;
	}
}