DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CPP
built in factorial function in c++
int factorial(int n) { return (n == 1 || n == 0) ? 1 : factorial(n - 1) * n; }
Source by www.cplusplus.com #
PREVIOUS
NEXT
Tagged:
#built
#factorial
#function
ADD COMMENT
Topic
COMMENT
Name
7+5 =
Submit