A flowchart example depicts an algorithm for factorial of a number. The program takes an input of number N from a user and calculates the factorial of it.