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.


What is the value of 9 factorial plus 6 factorial?

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


what is the flow chart and algorithm to find the factorial of a given number?

A flowchart to find the factorial of a given number typically includes the following steps: Start, read the input number, check if the number is less than 0 (return an error for negative numbers), initialize a result variable to 1, and then use a loop to multiply the result by each integer from 1 to the input number. The algorithm can be summarized as follows: if ( n ) is the input number, initialize ( \text{factorial} = 1 ); for ( i ) from 1 to ( n ), update ( \text{factorial} = \text{factorial} \times i ); finally, output the factorial.