Commit ef521bac authored by xingqiao's avatar xingqiao
Browse files

helloworld basic code files

parent 1ec907ee
#include <stdio.h>
int main(void) {
for (int i=1; i<101; i++) {
if (i % 15 == 0) {
printf("fizzbuzz\n");
}else if (i % 3 == 0) {
printf("fizz\n");
}else if (i % 5 == 0) {
printf("buzz\n");
}else {
printf("%d\n", i);
}
}
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment