Do you know how to find the factorial of a given number? The factorial of a given number can be found by calculating the product of the sequence of numbers till the number, beginning from 1. As an example, factorial of 5 can be found as 5*4*3*2*1 which is equal to 120 Similarly, factorial of 6 is 6*5*4*3*2*1 which is…