Re: Interesting question



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
.



Relevant Pages

  • Help with calculating inheritance
    ... (Amount is 3000);Amount is 0). ... My problem is for example if john has 2 aunts and they both have a phd ... So how do you loop for every aunt and then get the total ?? ...
    (comp.lang.prolog)
  • Re: Short LOA
    ... so going to stop overnight tomorrow with mum. ... Funeral is for my aunt (mum's oldest sister). ... Sorry to hear you have to attend a funeral John but she had a good innings ...
    (uk.people.silversurfers)
  • John Kool goes to Skool
    ... There is a brown leather schoolbag behind the door ... John has been away to visit his uncle and aunt. ... The day is drawing near when John will go to school... ...
    (rec.arts.poems)