Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. For your next job interview

For your next job interview

Scheduled Pinned Locked Moved The Weird and The Wonderful
careerperformance
15 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Gary Wheeler

    @echo off
    for /L %%I in (1,1,100) do call :FizzBuzz %%I
    goto :EOF
    :FizzBuzz
    set I=%1
    set /a T3=I %% 3
    set /a T5=I %% 5
    set /a T35=T3 + T5
    if not %T35%==0 goto FizzBuzz5
    echo FizzBuzz
    goto :EOF
    :FizzBuzz5
    if not %T5%==0 goto FizzBuzz3
    echo Buzz
    goto :EOF
    :FizzBuzz3
    if not %T3%==0 goto FizzBuzzEcho
    echo Fizz
    goto :EOF
    :FizzBuzzEcho
    echo %I%
    goto :EOF

    Apparently I wrote this back in 2007. I have no memory of doing so, or why I did it :~.

    Software Zen: delete this;

    P Offline
    P Offline
    Pete OHanlon
    wrote on last edited by
    #4

    Well, that's a pretty decent FizzBuzz implementation.

    I was brought up to respect my elders. I don't respect many people nowadays.
    CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

    G 1 Reply Last reply
    0
    • P Pete OHanlon

      Well, that's a pretty decent FizzBuzz implementation.

      I was brought up to respect my elders. I don't respect many people nowadays.
      CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

      G Offline
      G Offline
      Gary Wheeler
      wrote on last edited by
      #5

      Thanks. I was dumpster diving in my archive, looking for something else, and found that :-O.

      Software Zen: delete this;

      1 Reply Last reply
      0
      • G Gary Wheeler

        @echo off
        for /L %%I in (1,1,100) do call :FizzBuzz %%I
        goto :EOF
        :FizzBuzz
        set I=%1
        set /a T3=I %% 3
        set /a T5=I %% 5
        set /a T35=T3 + T5
        if not %T35%==0 goto FizzBuzz5
        echo FizzBuzz
        goto :EOF
        :FizzBuzz5
        if not %T5%==0 goto FizzBuzz3
        echo Buzz
        goto :EOF
        :FizzBuzz3
        if not %T3%==0 goto FizzBuzzEcho
        echo Fizz
        goto :EOF
        :FizzBuzzEcho
        echo %I%
        goto :EOF

        Apparently I wrote this back in 2007. I have no memory of doing so, or why I did it :~.

        Software Zen: delete this;

        M Offline
        M Offline
        Marco Bertschi
        wrote on last edited by
        #6

        I kinda like the Term "FizzBuzz" :thumbsup::laugh:

        cheers Marco Bertschi


        Software Developer & Founder SMGT Web-Portal CP Profile | My Articles | Twitter | Facebook | SMGT Web-Portal

        G 1 Reply Last reply
        0
        • M Marco Bertschi

          I kinda like the Term "FizzBuzz" :thumbsup::laugh:

          cheers Marco Bertschi


          Software Developer & Founder SMGT Web-Portal CP Profile | My Articles | Twitter | Facebook | SMGT Web-Portal

          G Offline
          G Offline
          Gary Wheeler
          wrote on last edited by
          #7

          http://en.wikipedia.org/wiki/Fizz_buzz[^]

          Software Zen: delete this;

          S 1 Reply Last reply
          0
          • G Gary Wheeler

            @echo off
            for /L %%I in (1,1,100) do call :FizzBuzz %%I
            goto :EOF
            :FizzBuzz
            set I=%1
            set /a T3=I %% 3
            set /a T5=I %% 5
            set /a T35=T3 + T5
            if not %T35%==0 goto FizzBuzz5
            echo FizzBuzz
            goto :EOF
            :FizzBuzz5
            if not %T5%==0 goto FizzBuzz3
            echo Buzz
            goto :EOF
            :FizzBuzz3
            if not %T3%==0 goto FizzBuzzEcho
            echo Fizz
            goto :EOF
            :FizzBuzzEcho
            echo %I%
            goto :EOF

            Apparently I wrote this back in 2007. I have no memory of doing so, or why I did it :~.

            Software Zen: delete this;

            M Offline
            M Offline
            Marco Bertschi
            wrote on last edited by
            #8

            Oh dear, I had to capture the FizzBuzz thing for my sig...

            cheers Marco Bertschi


            Software Developer & Founder SMGT Web-Portal CP Profile | Twitter | Facebook | SMGT Web-Portal


            FizzBuzz - Gary Wheeler

            1 Reply Last reply
            0
            • G Gary Wheeler

              @echo off
              for /L %%I in (1,1,100) do call :FizzBuzz %%I
              goto :EOF
              :FizzBuzz
              set I=%1
              set /a T3=I %% 3
              set /a T5=I %% 5
              set /a T35=T3 + T5
              if not %T35%==0 goto FizzBuzz5
              echo FizzBuzz
              goto :EOF
              :FizzBuzz5
              if not %T5%==0 goto FizzBuzz3
              echo Buzz
              goto :EOF
              :FizzBuzz3
              if not %T3%==0 goto FizzBuzzEcho
              echo Fizz
              goto :EOF
              :FizzBuzzEcho
              echo %I%
              goto :EOF

              Apparently I wrote this back in 2007. I have no memory of doing so, or why I did it :~.

              Software Zen: delete this;

              Z Offline
              Z Offline
              ZurdoDev
              wrote on last edited by
              #9

              I guess I need to get out of programming. My brain sees this and then shuts down. I don't want to think and figure it out. My brain is tired. :)

              There are only 10 types of people in the world, those who understand binary and those who don't.

              G 1 Reply Last reply
              0
              • Z ZurdoDev

                I guess I need to get out of programming. My brain sees this and then shuts down. I don't want to think and figure it out. My brain is tired. :)

                There are only 10 types of people in the world, those who understand binary and those who don't.

                G Offline
                G Offline
                Gary Wheeler
                wrote on last edited by
                #10

                I would worry more if you wanted to figure it out. Can you imagine how frightened I am, given that I wrote this six years ago, and I don't remember why?

                Software Zen: delete this;

                Z L 2 Replies Last reply
                0
                • G Gary Wheeler

                  I would worry more if you wanted to figure it out. Can you imagine how frightened I am, given that I wrote this six years ago, and I don't remember why?

                  Software Zen: delete this;

                  Z Offline
                  Z Offline
                  ZurdoDev
                  wrote on last edited by
                  #11

                  :)

                  There are only 10 types of people in the world, those who understand binary and those who don't.

                  1 Reply Last reply
                  0
                  • G Gary Wheeler

                    @echo off
                    for /L %%I in (1,1,100) do call :FizzBuzz %%I
                    goto :EOF
                    :FizzBuzz
                    set I=%1
                    set /a T3=I %% 3
                    set /a T5=I %% 5
                    set /a T35=T3 + T5
                    if not %T35%==0 goto FizzBuzz5
                    echo FizzBuzz
                    goto :EOF
                    :FizzBuzz5
                    if not %T5%==0 goto FizzBuzz3
                    echo Buzz
                    goto :EOF
                    :FizzBuzz3
                    if not %T3%==0 goto FizzBuzzEcho
                    echo Fizz
                    goto :EOF
                    :FizzBuzzEcho
                    echo %I%
                    goto :EOF

                    Apparently I wrote this back in 2007. I have no memory of doing so, or why I did it :~.

                    Software Zen: delete this;

                    CHill60C Offline
                    CHill60C Offline
                    CHill60
                    wrote on last edited by
                    #12

                    I love this. Must open a cmd window just for old times sake :)

                    1 Reply Last reply
                    0
                    • G Gary Wheeler

                      I would worry more if you wanted to figure it out. Can you imagine how frightened I am, given that I wrote this six years ago, and I don't remember why?

                      Software Zen: delete this;

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #13

                      No, but I can imagine how frightened I would be beng in the same job for 23 years!!!!!!!!! FBOB That's a long time! About 8 years is my record.

                      MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                      G 1 Reply Last reply
                      0
                      • G Gary Wheeler

                        http://en.wikipedia.org/wiki/Fizz_buzz[^]

                        Software Zen: delete this;

                        S Offline
                        S Offline
                        SoMad
                        wrote on last edited by
                        #14

                        Not to be confused with http://en.wikipedia.org/wiki/Bucks_Fizz_(band)[^] (oh man, I think I just got "Making Your Mind Up" stuck in my head and I don't think I have heard it since the 80's). I just thought about this: www.zuberfizz.com[^]. I never tried this stuff, but back in 2006 I went on a road trip which took me through Durango (Colorado) and by request from a colleague of mine, I brought a couple of cases back to San Diego. Soren Madsen

                        "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

                        1 Reply Last reply
                        0
                        • L Lost User

                          No, but I can imagine how frightened I would be beng in the same job for 23 years!!!!!!!!! FBOB That's a long time! About 8 years is my record.

                          MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                          G Offline
                          G Offline
                          Gary Wheeler
                          wrote on last edited by
                          #15

                          I've worked on a lot of different things in that time. For the most part it's been a pretty fun ride.

                          Software Zen: delete this;

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups