Re: Interesting question
- From: Phil Carmody <thefatphil_demunged@xxxxxxxxxxx>
- Date: 30 Dec 2007 13:29:48 +0200
John <iamachamp@xxxxxxxxx> writes:
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.
Done.
Now give a generalized method to find the last X non-zero digits of N
factorial
Done.
That was easy.
Phil
--
Dear aunt, let's set so double the killer delete select all.
-- Microsoft voice recognition live demonstration
.
- References:
- Interesting question
- From: John
- Interesting question
- Prev by Date: Re: Number theory
- Next by Date: Re: sci.math spam
- Previous by thread: Re: Interesting question
- Next by thread: Re: Interesting question
- Index(es):
Relevant Pages
|