Write a shell script to find factorial of a given integer.
Answers
Answered by
0
hey mate here is the answer of your question...
1.Let's write a shell script to find the factorial of a number. Algorithm.
2.Get a number. Use for loop or while loop to compute the factorial by using the below formula. fact(n) = n * n-1 * n-2 * .. ...
3.gt stands for greater than (>). Output.
4.Enter a number. 120. Factorial of a number using for loop - Shell Script.
I hope this may help u and please mark me as the brainliest ....
Similar questions