R Basics-25 - Coding-Iterations-1 (Hands On) - ClassiCoder Factorial . Write a function Nfact to find the factorial of the number num passed as arguments using…