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

One Line Factorial

Name: Anonymous 2009-06-15 15:56

for(int a1=1,a2=1,i=scanf_s("%d",&i)+i-1;(i--)>2; a1=(a2+=a1)-a1,(i==2)?printf_s("Result=%d\n",a2):NULL)

Name: tehmeh 2009-06-19 14:31

>>36
cool sieve bro

def factorial(n):
    x=1
    while (n>0):
        x=x*n
        n=n-1
    return x

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