The factorial function is a mathematical formula represented by an exclamation mark “!”. For example, the factorial of 8 can be represented as 8! and it is read as eight factorial.