answersLogoWhite

0

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!"

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

Write the Pseudocode to find the factorial of a number?

Pseudo code+factorial


Write a C-like program fragment that calculate the factorial function for argment 12 with do while loop?

#!/usr/bin/perl print factorial($ARGV[11]); sub factorial { my($num) = @_; if($num == 1) { return 1; # stop at 1, factorial doesn't multiply times zero } else { return $num * factorial($num - 1); # call factorial function recursively } }


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;


How do you write a program that calculate factorial in javascript?

factorial number Var num= prompt("enter any number "); Var i=1; Var fact=1; for(i=1;i


Write a program in java for factorial?

// Iterative solution public static final long iterativeFactorial(final long n) { long factorial = 1; for (long i = 1; i <= n; i++) { factorial *= i; } return factorial; } // Recursive solution public static final long recursiveFactorial(final long n) { if (n <= 1) { return n; } return n * recursiveFactorial(n - 1); } // Arbitrary length solution - may take a while, but works on any positive number. public static final BigInteger factorial(final BigInteger n) { BigInteger factorial = BigInteger.ONE; for (BigInteger i = BigInteger.ONE; i.compareTo(n) <= 0; i = i.add(BigInteger.ONE)) { factorial = factorial.multiply(i); } return factorial; }

Related Questions

How do you write this expression as a factorial 87654321?

8! means 8*7*6*5*4*3*2*1=40,320


Write this expression as a factorial 654321?

720


How do you write 87654321 in expanded form?

87,000,000 +600,000+50,000+4000+300+20+1


Write the Pseudocode to find the factorial of a number?

Pseudo code+factorial


Write the expression as a factorial. 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1?

8!


What is 12345678 plus 87654321?

99999999.


The expression 3 factorial equals what?

3! = 3×2×1 = 6


What is 87654321 multiplied by 786584321?

6.89475146 × 1016


How do you write an expression?

How do you write an expression


How do you write a program to factorial in PHP?

To write a program that calculates the factorial of a number in PHP, you can use a recursive function or an iterative approach. Here’s a simple example using a loop: function factorial($n) { $result = 1; for ($i = 2; $i <= $n; $i++) { $result *= $i; } return $result; } echo factorial(5); // Outputs: 120 This code defines a function that multiplies numbers from 2 up to the given number $n to compute the factorial.


What does it mean when a factorial is in a parenthesis?

When a factorial is in parentheses, it typically indicates that the entire expression within the parentheses should be evaluated first before applying the factorial operation. For example, (n!) means to first calculate the value of n and then take the factorial of that value. This notation helps clarify the order of operations in mathematical expressions.


What patterns do you see in the multiples of nine?

It is counting down 87654321