Fast, Recursive Factorial function - C#
6
Gives factorials for a given value.
public static long Factorial(long val) {
return val == 1 ? val:val*Factorial(val - 1);
}



KennethCC
me
jamesmcm
Can
Kelmi
ysg
dannymo2
chorny
wallie
Hackdemian
dannyboy
sundaramkumar
mattrmiller
Pio
i_kenneth
ASmith
ctiggerf
sehrgut
bertheymans
SCoon
I've got good news, and I've got bad news:
The universe is merely a figment of my imagination.
Now are you ready for the bad news?