X29: factorial

Write a function in Java called factorial() that will take a positive integer as input and returns its factorial as output.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.