DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVA
factorial of a number using recursion in java
public int factorial(int num) { if (num == 0) return 1; else return (num * factorial(num - 1)); }
PREVIOUS
NEXT
Tagged:
#factorial
#number
#recursion
#java
ADD COMMENT
Topic
COMMENT
Name
7+8 =
Submit