factorial (prefix) or ! (postfix) takes as argument an integer n. factorial(n) or n! returns n!. Input :
or
Output :