Re: Interesting question



Question Write a program that can compute the last non-zero digit of
any factorial for ( 0 <= N <= 10000).

Some references here:

http://www.research.att.com/~njas/sequences/A008904

--
HTH
Dana



"John" <iamachamp@xxxxxxxxx> wrote in message
news:38b1af62-f2b3-41bc-a03c-26e77b1d3bc2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Question Write a program that can compute the last non-zero digit of
any factorial for ( 0 <= N <= 10000). For example, if your program is
asked to compute the last nonzero digit of 5!, your program should
produce 2.

Now give a generalized method to find the last X non-zero digits of N
factorial


.