answersLogoWhite

0


Best Answer

The following is not tested:

function factorial
parameters number
private product, i
product = 1
for i = 1 to number
product = product * i
next
return product

The following is not tested:

function factorial
parameters number
private product, i
product = 1
for i = 1 to number
product = product * i
next
return product

The following is not tested:

function factorial
parameters number
private product, i
product = 1
for i = 1 to number
product = product * i
next
return product

The following is not tested:

function factorial
parameters number
private product, i
product = 1
for i = 1 to number
product = product * i
next
return product

User Avatar

Wiki User

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

Wiki User

14y ago

The following is not tested:

function factorial
parameters number
private product, i
product = 1
for i = 1 to number
product = product * i
next
return product

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Foxpro 2.6 find a factorial given number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Find flow chart for factorial of given number?

i need a pic of cuson


How do you find factorial of given number?

Factorials are the product of 1 and all the integers up to the given number. Simply put, 5 factorial or 5! = 5*4*3*2*1


How do you find factorial in fox pro?

FoxPro doesn't have any special factorial function, so you would have to write your own factorial function. It's fairly easy, for example:function factoriallparameters nresult = 1for i = 1 to nresult = result * nnextreturn resultIf you have an older version of FoxPro, you may need to replace "lparameters" by "parameters".Or even simpler, with recursion:function factoriallparameters nreturn iif(n


Flowchart to find factorial of a given no?

Kat


Write the Pseudocode to find the factorial of a number?

Pseudo code+factorial


Define a macro to find the factorial of a given number?

#define fact(n) ( n == 0 ? 1 ; (n*(fact(n-1) ) ) )


Program to find the factorial of a number using recursion?

/*program to find the factorial of a given number*/ #include<stdio.h> #include<conio.h> int fact(int); void main() { int n,c; printf("\n enter the number for which you want to find the factorial"); scanf("%d",&n); c=fact(n); printf("\n the factorial of the number %d is %d",n,fact); getch(); } int fact(int n) { int k; if(n==0) return(1); else k=n*fact(n-1); return(k); }


How do find factorial using vbscript?

<html> <script language="vbscript"> n=cint(inputbox("Enter a number")) dim f f=1 if n<0 then Msgbox "Invalid number" elseif n=0 or n=1 then MsgBox "The factorial of given number "&n&" is :"&f else for i=n to 2 step -1 f=f*i next MsgBox "The factorial of given number "&n&" is :"&f end if </script> </html>


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})]


Find the number of distinguishable permutations of the letters in the word manatee?

Take the total number of letters factorial, then divide by the multiple letters factorial (a and e). 7! / (2!*2!) or 1260.


By using call by reference find the factorial of a number?

chutia mc,bc bhosdika


Find factorial at given number using do while loop?

Actually, a for loop is more appropriate in this case. With while, it would be something like the following pseudocode - adapt to your favorite programming language:function factorial(n)result = 1factor = 1while factor