answersLogoWhite

0

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 factorial

lparameters n

result = 1

for i = 1 to n

result = result * n

next

return result


If you have an older version of FoxPro, you may need to replace "lparameters" by "parameters".


Or even simpler, with recursion:


function factorial

lparameters n

return iif(n<=1, n, n*factorial(n-1))


User Avatar

Wiki User

8y ago

What else can I help you with?

Continue Learning about Math & Arithmetic
Related Questions

Write the Pseudocode to find the factorial of a number?

Pseudo code+factorial


Fox pro program to reverse the given number?

reverse programe in fox pro


Flowchart to find factorial of a given no?

Kat


What is the uses of FOX Pro?

tubol


C program to find factorial of a no?

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


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


Write a java program to find the factorial of a given number?

Here's a simple Java program to find the factorial of a given number using a recursive method: import java.util.Scanner; public class Factorial { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print(&quot;Enter a number: &quot;); int number = scanner.nextInt(); System.out.println(&quot;Factorial of &quot; + number + &quot; is &quot; + factorial(number)); } static int factorial(int n) { return (n == 0) ? 1 : n * factorial(n - 1); } } This program prompts the user for a number and calculates its factorial recursively.


What are the dbms softwares available in the market and find the license sotwares?

oracle, fox pro,ms access ,mysql and sql servers


Draw a flowchart to find the least in ten numbers?

factorial


What is Visual Fox Pro?

Visual Fox Pro is a database language for Windows. It originated from FoxPro which was a competitor to dBase. See also the related link below.


Write a C program to find out factorial if 10?

Here's a simple C program to calculate the factorial of 10: #include &lt;stdio.h&gt; int main() { int i; unsigned long long factorial = 1; // Use unsigned long long for larger results for(i = 1; i &lt;= 10; i++) { factorial *= i; } printf(&quot;Factorial of 10 is %llu\n&quot;, factorial); return 0; } This program uses a loop to multiply numbers from 1 to 10 and stores the result in factorial, which is then printed.


What is the value of 9 factorial plus 6 factorial?

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