Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Gentlemen, behold

Name: Anonymous 2008-02-18 13:15


float fact(float x)
{
  if x (<= 2)
    return x;
  else return x * (fact x--);
}

Name: Anonymous 2008-02-18 13:37

float

Name: Anonymous 2008-02-18 13:38

Oh fuck, should be
if (x <= 2)

Name: Anonymous 2008-02-18 13:42

>>5
That's not the only thing wrong with it.

Syntax errors aside, it wouldn't even produce the right output even if it did compile.
Protip: 0! = 1

Name: Anonymous 2008-02-18 14:02

ITT too much Haskell.

Name: Anonymous 2008-02-19 0:46

>>16
My dog has no tail.

Name: Anonymous 2010-06-10 14:25


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List