0
/ 10

Write a function in Java called `factorial()`

that will take a positive integer as input and returns its factorial as output.

Searching for: multiplication

0
/ 10

`factorial()`

that will take a positive integer as input and returns its factorial as output.

0
/ 50

`factorial()`

that will take a positive integer as input and returns its factorial as output.

0
/ 10

Write a function in C++ called `factorial()`

that will take a positive integer as input and returns its factorial as output.