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 17:12

unsigned long fact[b]([/b]unsigned long n[b])[/b] [b]{[/b]
    if [b]([/b]n < 2[b])[/b] [b]{[/b]
        return 1; [b]}[/b]
    else [b]{[/b]
        return n * fact[b]([/b]n - 1[b])[/b]; [b]}[/b][b]}[/b]


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