Write an algorithm to find factorial of a number entered by user
Answers
Answered by
11
Answer:
see in the picture .. of ur answer
Attachments:
Answered by
0
Write an algorithm to find factorial of a number entered by user
- Activate programme
- To find the factorial, request an integer from the user.
- Assign the integer to a variable after reading it.
- The final value is updated by multiplying each digit from the integer's value up to 1.
- The factorial is the final result after all multiplications up to one.
- pause the programme.
- In mathematics, the term "factorial" refers to the sum of all positive integers that are less than or equal to a certain positive integer, which is followed by an exclamation point. Thus, factorial seven is denoted by the symbol 7!, which stands for 1 2 3 4 5 6 7. Factorial 0 is equivalent to 1 by definition.
- The sum of all the integers from 1 to a certain number is its factorial. The factorial of 6, for instance, is 1*2*3*4*5*6 = 720. Factorial does not apply to negative numbers, and zero has a factorial of 1, or 0!
#SPJ2
Similar questions