X29: factorial

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

Examples:

This is an example
Reset

Practice a different Java exercise