answersLogoWhite

0


Best Answer

#include
#include
void main()
{
int fact(int n);
clrscr();
printf("%d",fact(5));
getch();
}
int fact(int n)
{
int fact=1;
while(n>=1)
{
fact=fact*n;
n--;
}
return fact;
}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

The factorial function is the product of a single scalar value and all of its smaller values down to one. As such, it does not make sense to ask how to find the factorial of an array. Certainly, one could determine the factorial of each element of the array; simply setup a loop that iterates through the array and then performs the factorial function.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you find factorial of an array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write the Pseudocode to find the factorial of a number?

Pseudo code+factorial


Flowchart to find factorial of a given no?

Kat


How can you figure out combinations in math?

If you have N things and want to find the number of combinations of R things at a time then the formula is [(Factorial N)] / [(Factorial R) x (Factorial {N-R})]


C program to find factorial of a no?

this is a code for calculating it recursivelly: float Factorial (float n) { if (n<=1) return 1.0; else return n* Factorial(n-1); }


Draw a flowchart to find the least in ten numbers?

factorial


How will you find the location of an element of an array?

Basically, &array[i]; That is, the memory location for an array object with index i. Or, you can do: (array + i);


How do you find particular element in array?

by using index position we can find the particular element in array.


What is the value of 9 factorial plus 6 factorial?

The value of 9 factorial plus 6 factorial is 363,600


How do you find factorials?

to find factorials you just multiply the factorial like this. for example 6! you would do 6x5x4x3x2. a little trick of mine is to multiply the previous factorial's answer by the factorial you are trying to make's number like this 6!=5! 5!=5x4x3x2 i hope this was helpful' Dayna,a 10 year old girl


What is 30 factorial divided by 27 factorial times 3 factorial?

It is 4060.


What is factorial of 998?

factorial of -1


How do you find the factorial of a number like 4 over 2 after the 4 and 2 there is a exlamation mark?

Factorial is calculated by multiplying be each lower integer. eg factorial 4 (also written as 4!) is 4 x 3 x 2