News for hackers. Stuff that matters.
Re:Unpythonic Python by yew on Thursday April 10, 2014 @02:47PM (#7568772)
Taking that a little further,

  const char *fb[][2] = {{"%d\n", "Fizz\n"}, {"Buzz\n", "FizzBuzz\n"}};
  int i;
  for (i = 1; i <= 100; ++i)
          printf(fb[i % 5 == 0][i % 3 == 0], i);
(It's a pity we have to specify the second dimension manually . . .)

There are no comments on this comment yet.