0
/ 1.0
Write a function in Java called factorial()
that will take a positive integer as input and returns its factorial as output.
Score: 0 / 1.0
Variable declaration and initialization, literals
Write a function in Java called factorial()
that will take a positive integer as input and returns its factorial as output.