Task:
design an algorithm using a flowchart that computes the factorial of an integer nnn .
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?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments