3 ms·write an algorithm that compute the factorial of a given whole numberby arstotel 18y agowrite an algorithm that compute the factorial of a given whole number