Factorial easy
R Basics

Write an R function solution(x) that returns the factorial of the non-negative integer x.

Example

solution(5)  →  120
solution.py
14px
📊 Test Results
Run your code to see test results here.