How to write a program to find the delimiter matching in stacks? |
[Edit] |
Answer
Function Factorial(x int) { if x > 1 then y = x * Factorial(x-1) return y }
Or
Function Factorial(x int) { y=1 Loop through 1 to x y=y*x return y }
First answer by ID3229957890. Last edit by ComputerJy. Contributor trust: 295 [recommend contributor]. Question popularity: 22 [recommend question]
|
Research your answer: |
Can you answer other
questions about programming?



