Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

14! = 1278945280

807606Mar 16 2007 — edited Mar 18 2007
Hi,

For numbers greater than the size of int variable, e.g. 14! = 1278945280.
Is there anyway that I can do to count the zeros in the factorial without changing the type of int, and without using long or BigInteger.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2007
Added on Mar 16 2007
28 comments
665 views