function a ($i){if($i>1,$sum=0,$i++){sum=a($i-1)+sum } }a(5)
def factorial(n): result = n for i in range(1, n): result *= i return result nu