September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
16
Task/FizzBuzz/C/fizzbuzz-8.c
Normal file
16
Task/FizzBuzz/C/fizzbuzz-8.c
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include <stdio.h>
|
||||
|
||||
main() {
|
||||
int i = 1;
|
||||
while(i <= 100) {
|
||||
if(i % 15 == 0)
|
||||
puts("FizzBuzz");
|
||||
else if(i % 3 == 0)
|
||||
puts("Fizz");
|
||||
else if(i % 5 == 0)
|
||||
puts("Buzz");
|
||||
else
|
||||
printf("%d\n", i);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue