How about you pay attention in class so you don't have to ask the computer for the answers.be smart listen to your teacher.
Just kidding ,i'm just thirteen what do i know
' Iterative solution Function iterativeFactorial(ByVal n As Long) As Long Dim factorial As Long = 1 For i As Long = 1 To n factorial *= i Next Return factorial End Function ' Recursive solution Function recursiveFactorial(ByVal n As Long) As Long If n <= 1 Then Return n End If Return n * recursiveFactorial(n - 1) End Function
#!/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 } }
#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;
double factorial(double N){double total = 1;while (N > 1){total *= N;N--;}return total; // We are returning the value in variable title total//return factorial;}int main(){double myNumber = 0;cout > myNumber;cout
factorial number Var num= prompt("enter any number "); Var i=1; Var fact=1; for(i=1;i
Since n! is the product of all the numbers from 1 through n and (n+1)! is everything in n! multiplied by n+1, the quotient is n+1 ■
Use your identity to write the numerator in terms of tangent.
4 divided by 9 minus 1 divided 12?
Four factorial plus the square root of four minus (four divided by four) 24 + 2 - 1 = 25
6 divided by 11 minus 1 divided by 2 equals?
2
simply, any number divided by 0 is 0.
-3
-x-6-(-11x) + (-1) Remove the brackets: -x-6+11x-1 Collect and simplify like terms: 10x-7 A - - is equal to a +
8 plus 4 minus 12 divided by 1 is 0.
2c
1 factorial = 1