First of Factorial

0

0 votes
Easy
Problem

Given a number 'n', output the first digit of it's factorial.

Input will contain an integer type number.
The output will contain the first digit of the factorial of the entered number.

Time Limit: 5
Memory Limit: 256
Source Limit:
Explanation

Example 1:-
Input:-3
Output:-6


Example 2:-
Input:-15
Output:-1


Example 3:-
Input:-156
Output:-7


Editor Image

?