Re: Interesting question



On Dec 24, 12:19 pm, John <iamach...@xxxxxxxxx> wrote:
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

The same question was asked at http://groups.google.com/group/sci.math/browse_frm/thread/5ac3721631060330,
but for much larger numbers where it is not feasible to iterate from 1
to N.
.