First commit of partial RosettaCode contents.
Pushing this for testing purposes. Lots of work still needed.
This commit is contained in:
commit
1e05ecd7ee
781 changed files with 9080 additions and 0 deletions
11
Task/FizzBuzz/C/fizzbuzz-4.c
Normal file
11
Task/FizzBuzz/C/fizzbuzz-4.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include<stdio.h>
|
||||
|
||||
int main ()
|
||||
{
|
||||
int i;
|
||||
const char *s[] = { "%d\n", "Fizz\n", s[3] + 4, "FizzBuzz\n" };
|
||||
for (i = 1; i <= 100; i++)
|
||||
printf(s[!(i % 3) + 2 * !(i % 5)], i);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue