write a algorithm and flowchart for factorial of a number
Answers
Answered by
9
Explanation:
ALGORITHM
- Read number n
- Initialize i and fact to 1
- Repeat 4 and 5 when i is not equal to n.
- fact <- fact * i
- i <- i + 1
- Return fact.
Attachments:
Similar questions