Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FizzBuzz implementation in ArnoldC - https://github.com/lhartikk/ArnoldC/wiki/ArnoldC
IT'S SHOWTIME
HEY CHRISTMAS TREE isLessThan100
YOU SET US UP @NO PROBLEMO
HEY CHRISTMAS TREE n
YOU SET US UP 0
HEY CHRISTMAS TREE multiple
YOU SET US UP @NO PROBLEMO
STICK AROUND isLessThan100
GET TO THE CHOPPER n
HERE IS MY INVITATION n
GET UP 1
ENOUGH TALK
GET TO THE CHOPPER isLessThan100
HERE IS MY INVITATION 100
LET OFF SOME STEAM BENNET n
ENOUGH TALK
GET YOUR ASS TO MARS multiple
DO IT NOW divisible n 15
BECAUSE I'M GOING TO SAY PLEASE multiple
TALK TO THE HAND "FizzBuzz"
BULLSHIT
GET YOUR ASS TO MARS multiple
DO IT NOW divisible n 3
BECAUSE I'M GOING TO SAY PLEASE multiple
TALK TO THE HAND "Fizz"
BULLSHIT
GET YOUR ASS TO MARS multiple
DO IT NOW divisible n 5
BECAUSE I'M GOING TO SAY PLEASE multiple
TALK TO THE HAND "Buzz"
BULLSHIT
TALK TO THE HAND n
YOU HAVE NO RESPECT FOR LOGIC
YOU HAVE NO RESPECT FOR LOGIC
YOU HAVE NO RESPECT FOR LOGIC
CHILL
YOU HAVE BEEN TERMINATED
LISTEN TO ME VERY CAREFULLY modulo
I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE dividend
I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE divisor
GIVE THESE PEOPLE AIR
HEY CHRISTMAS TREE quotient
YOU SET US UP 0
HEY CHRISTMAS TREE remainder
YOU SET US UP 0
HEY CHRISTMAS TREE product
YOU SET US UP 0
GET TO THE CHOPPER quotient
HERE IS MY INVITATION dividend
HE HAD TO SPLIT divisor
ENOUGH TALK
GET TO THE CHOPPER product
HERE IS MY INVITATION divisor
YOU'RE FIRED quotient
ENOUGH TALK
GET TO THE CHOPPER remainder
HERE IS MY INVITATION dividend
GET DOWN product
ENOUGH TALK
I'LL BE BACK remainder
HASTA LA VISTA, BABY
LISTEN TO ME VERY CAREFULLY divisible
I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE dividend
I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE divisor
GIVE THESE PEOPLE AIR
HEY CHRISTMAS TREE result
YOU SET US UP 0
GET YOUR ASS TO MARS result
DO IT NOW modulo dividend divisor
HEY CHRISTMAS TREE isZero
YOU SET US UP 0
GET TO THE CHOPPER isZero
HERE IS MY INVITATION result
YOU ARE NOT YOU YOU ARE ME 0
ENOUGH TALK
I'LL BE BACK isZero
HASTA LA VISTA, BABY
@lhartikk

This comment has been minimized.

Copy link

commented Feb 27, 2014

Cool!
Feel free to create a pull request having this example added in the test package

@eerwitt

This comment has been minimized.

Copy link

commented May 21, 2014

Wow! This is incredible.

@joaomilho

This comment has been minimized.

Copy link

commented Jun 18, 2014

Amazing. What about a Pulp Fiction inspired language called "English"?

@josephrexme

This comment has been minimized.

Copy link

commented Jun 20, 2014

This is super awesome. I wonder how an american pie language will be.

@simonjpahome

This comment has been minimized.

Copy link

commented Jun 20, 2014

Cool! Can someone tell how to install this on Windows 8 64 bits?

@vike27

This comment has been minimized.

Copy link

commented Jul 14, 2015

naaaaiceeee

@nicosuave

This comment has been minimized.

Copy link

commented Aug 17, 2015

:neckbeard:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.