Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function factorial(numOne,numTwo){
- function fact(num){
- let output=1;
- for(let i=1;i<=num;i++){
- output*=i;
- }
- return output;
- }
- let firstValue=fact(numOne);
- let secondValue=fact(numTwo);
- let division=(firstValue/secondValue).toFixed(2);
- return division;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement