Westonci.ca is the premier destination for reliable answers to your questions, provided by a community of experts. Get expert answers to your questions quickly and accurately from our dedicated community of professionals. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

Write a script called fact.sh that is located in your workspace directory to calculate the factorial of a number n; where n is a non-negative integer between 1 and 20 that is passed as a parameter from the command line (e.g. ./fact.sh 5). The result should be echoed to the screen as a single integer (e.g. 120).
NOTE: Do not include any other output, just output the single integer result.
Submit your code to the auto-grader by pressing Check-It!
NOTE: You can submit as many times as you want up until the due date.