[ create a new paste ] login | about

Link: http://codepad.org/LsWu5lBF    [ raw code | output | fork ]

C, pasted on Jun 11:
1
2
3
4
5
6
7
8
9
10
int main(void){
char *s[4] = { "  ","Fizz","Buzz","FizzBuzz"};
int i, j;
for (i=1;1<=100;i++){
j=(i%5==0)<<1+(i%3==0);
if(j==0)
sprintf(s[0],"%d",i);
puts(s[j]);
}
}


Output:
1
Segmentation fault


Create a new paste based on this one


Comments: