answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Factorial of a number in shell?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How many zeros are possible factorial 10 to the power factorial 10?

To calculate the number of zeros in a factorial number, we need to determine the number of factors of 5 in the factorial. In this case, we are looking at 10 to the power of 10 factorial. The number of factors of 5 in 10! is 2 (from 5 and 10). Therefore, the number of zeros in 10 to the power of 10 factorial would be 2.


Write a recursive procedure to compute the factorial of a number?

#include <iostream> using namespace std; int main() { int i, number=0, factorial=1; // User input must be an integer number between 1 and 10 while(number<1 number>10) { cout << "Enter integer number (1-10) = "; cin >> number; } // Calculate the factorial with a FOR loop for(i=1; i<=number; i++) { factorial = factorial*i; } // Output result cout << "Factorial = " << factorial << endl;


Programming to calculate a factorial number?

double factorial(double N){double total = 1;while (N > 1){total *= N;N--;}return total; // We are returning the value in variable title total//return factorial;}int main(){double myNumber = 0;cout > myNumber;cout


Write the Pseudocode to find the factorial of a number?

Pseudo code+factorial


What is 435436543647654 factorial?

A big number.


What is a factorial in mathematical terms?

The factorial of a number is the product of all the whole numbers, except zero, that are less than or equal to that number.


How do you compile and run shell script of factorial?

Shell scripts are not compiled; they are interpreted (and therefore do not need to be compiled). Just type in the name of the shell script and any parameters it needs to execute.


What is the factorial of any number?

a factorial number is a number multiplied by all the positive integers i.e. 4!=1x2x3x4=24 pi!=0.14x1.14x2.14x3.14 0!=1


How do you do a factorial?

You first look at the number that is before the !(factorial sign). Then you times all positive integers (which means it doesn't include 0), including the number itself. The answer is the factorial of the original number beside the ! sign. EX.:4!=1x2x3x4=24


How do you solve the factorial of 3?

A factorial is a whole number multiplied by all the whole numbers less than that number. So 3 factorial (written as 3!) is 3 times 2 times 1=6


What is the factorial of 40?

The factorial of a number n, denoted as n!, is the product of all positive integers up to n. In this case, the factorial of 40 is calculated as 40 × 39 × 38 × ... × 2 × 1. This results in an extremely large number, specifically 815915283247897734345611269596115894272000000000.


Write this expression as a factorial 87654321?

That's not the factorial of any number. For a start, the factorial of any number greater than or equal to 2 is even, because of the factor 2. The factorial of any number greater or equal to five ends with 0. Another answer: I suspect the questioner meant to ask how to write 8*7*6*5*4*3*2*1 as a factorial. If so, then the answer is "8!"