• @kinttach@lemm.ee
    cake
    link
    fedilink
    English
    198 months ago

    “I implemented the FizzBuzz algorithm in only 10 million lines of code!”

    • @cbarrick@lemmy.world
      link
      fedilink
      English
      138 months ago
      char* fizzbuzz(int n) {
          switch (n) {
              case 0: return "fizzbuzz";
              case 1: return "1";
              case 2: return "2";
              case 3: return "fizz";
              case 4: return "4";
              case 5: return "buzz";
              ...
          }
      }