Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23

Thread: dubya tee eff, mate

  1. #16
    i n v i s i b l e Tech Admin o_O's Avatar
    Join Date
    Jun 2001
    Location
    New Zealand
    Posts
    2,957
    Blog Entries
    1

    FFXIV Character

    Humphrey Squibbles (Sargatanas)

    Default

    Quote Originally Posted by rubah View Post
    what praytell is a fizzbuzz xD
    For some n, a and b; it iterates from 0 to n, printing "fizz" for multiples of a, "buzz" for multiples of b, "fizzbuzz" for multiples of a and b or the number of the iteration for multiples of neither a or b. ?

    You get asked to write that kind of crap at programming interviews.

  2. #17
    Draw the Drapes Recognized Member rubah's Avatar
    Join Date
    Dec 2004
    Location
    Now Destiny is done.
    Posts
    30,655
    Blog Entries
    21
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    well good job making it so short then!

  3. #18
    Eggstreme Wheelie Recognized Member Jiro's Avatar
    Join Date
    Aug 2004
    Posts
    26,942
    Articles
    65
    Blog Entries
    1
    Contributions
    • Former Cid's Knight
    • Former Editor
    • Notable contributions to former community wiki

    Default

    I was rather good at simultaneous equations, but I started getting overwhelmed. So I dropped out of the top maths class
    Now I'm sitting on A+ and enjoying bludging. I don't even turn up to some lessons, I learn more staring at walls.

    They see me rolling. They hating, patrolling.
    Trying to catch me riding dirty.


  4. #19
    it's not fun, don't do it Moon Rabbits's Avatar
    Join Date
    Mar 2005
    Posts
    5,582

    Default

    Quote Originally Posted by o_O View Post
    Quote Originally Posted by rubah View Post
    what praytell is a fizzbuzz xD
    For some n, a and b; it iterates from 0 to n, printing "fizz" for multiples of a, "buzz" for multiples of b, "fizzbuzz" for multiples of a and b or the number of the iteration for multiples of neither a or b. ?

    You get asked to write that kind of crap at programming interviews.
    That seems deceptively simple.

  5. #20
    Draw the Drapes Recognized Member rubah's Avatar
    Join Date
    Dec 2004
    Location
    Now Destiny is done.
    Posts
    30,655
    Blog Entries
    21
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    oh my gosh mike, I think I understand the logic of that snippit. @_@

    (The source is strong with this one. . .)

  6. #21
    i n v i s i b l e Tech Admin o_O's Avatar
    Join Date
    Jun 2001
    Location
    New Zealand
    Posts
    2,957
    Blog Entries
    1

    FFXIV Character

    Humphrey Squibbles (Sargatanas)

    Default

    You should write your own then!

    It's exactly the same as this Ruby script, only condensed into one line with one space. :
    PHP Code:
    def fb(nab)

      if (
    x%== 0)
        print 
    "fizz"

        
    if (x%== 0)
          print 
    "buzz"

      
    elsif (x%== 0)
        print 
    "buzz"

      
    else
        print 
    x
      end

      
    print "\n"
    end

    fb
    (10034

  7. #22
    Draw the Drapes Recognized Member rubah's Avatar
    Join Date
    Dec 2004
    Location
    Now Destiny is done.
    Posts
    30,655
    Blog Entries
    21
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    being able to read something does not necessarily equate to being able to write something xD

  8. #23
    Would sniff your fingers to be polite
    Nameleon.
    Quindiana Jones's Avatar
    Join Date
    Oct 2005
    Location
    These mountains are made of rainbows.
    Posts
    20,870
    Blog Entries
    6
    Contributions
    • Former Cid's Knight

    Default

    I made up my own written language, and used it for a year to write notes to my mates.

    I've totally forgotten it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •