Closed MrImmortal09 closed 11 months ago
Hey @MrImmortal09 , Can you share screenshots and explain your PR very clearly about the changes you have made.
Yes definately, First of all program asks for an input through cin. After that a user defined function factorial is called and the input is passed. Then the factorial function starts its execution. It first checks wheather n==0 if yes then returns 1, If no then it returns n*factorial (n-1) where the factorial (n-1) again calls the factorial function itself and the loop goes so on until the if condition state true.
example: Input: 5 Execution;
I have also attached a flow chart explaining the same recursion.
31 I have added a new file with method of recursion to find factorial of any number. I have also added long long int, to get answers of bigger numbers. Please review my code @shishiro26 @PavanaSakethaRam
LIT2023002