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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 20 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply