X539: Factorial Ruby

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

Your Answer:

Reset

Practice a different Ruby exercise

Feedback

Your feedback will appear here when you check your answer.