You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Mike likes to play with numbers. His friends are also good with numbers and often play mathematical games. They made a small game where they will spell the last digit of factorial of a number other than 0. Let say the given number is 5, so 5! (5 factorial) will be 5 * 4 * 3 * 2 * 1 = 120. Here 0 is the last digit. But, we don't want 0, we want a number other than 0. Then the last digit is 2. This is what we have to output.