Question #23543

design an algorithm using a flowchart that computes the factorial of an integer n n!=n(n(-1)!(n-2)Your question (max 1024 symbols)
1

Expert's answer

2013-02-04T08:35:23-0500

Task:

design an algorithm using a flowchart that computes the factorial of an integer nn .

Solution:


Factorial of n:


BEGIN
- read (N)
- F = 1
- M = 1
Label1:
- F = F * M
- if M >= N
- write (F)
- else
- M = M + 1
- goto Label1
END

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS