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 <stdio.h>
#include <string.h>
int main() {
for (int i = 1; i <= 100; i++) {
char out[30] = "";
if (i % 3 == 0) {
strcat(out, "Fizz");
}
if (i % 5 == 0) {
strcat(out, "Buzz");
}
if (strcmp(out, "") == 0) {
printf("%d", i);
} else {
printf("%s", out);
}
printf("\n");
}
return 0;
}