DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CPP
recursive factorial of a number
factorial(N){ if(N<=1) { return 1; } else { return (N*factorial(N-1)); } }
Source by www.scaler.com #
PREVIOUS
NEXT
Tagged:
#recursive
#factorial
#number
ADD COMMENT
Topic
COMMENT
Name
5+2 =
Submit