perm or nPr takes as arguments two integers n and p. perm(n,p) or nPr(n,p) returns Pnp. Input :
Output :