Page 1 of 1

Write a script to calculate the factorial of a given number. Sample testcases Input 1 Output 1 2 Factorial of 2 is 2 Inp

Posted: Thu May 05, 2022 1:00 pm
by answerhappygod
Write A Script To Calculate The Factorial Of A Given Number Sample Testcases Input 1 Output 1 2 Factorial Of 2 Is 2 Inp 1
Write A Script To Calculate The Factorial Of A Given Number Sample Testcases Input 1 Output 1 2 Factorial Of 2 Is 2 Inp 1 (242.78 KiB) Viewed 22 times
shell program
Write a script to calculate the factorial of a given number. Sample testcases Input 1 Output 1 2 Factorial of 2 is 2 Input 2 Output 2 -1 No factorial for negative number Note: The program will not be evaluated if "Submit Code" is not done atleast once Extra spaces and new line characters in the program output will also result in the testcase failing