Init commit

This commit is contained in:
2020-12-06 20:33:49 +00:00
commit 95b560b955
5 changed files with 81 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#include <iostream>
#include <string>
using namespace std;
int main() {
for (int i = 1; i <= 100; i++) {
string out = "";
if (i % 3 == 0) {
out += "Fizz";
}
if (i % 5 == 0) {
out += "Buzz";
}
if (out == "") {
cout << i << endl;
} else {
cout << out << endl;
}
}
return 0;
}