There are only two hard things in computer science: cache invalidation, naming things, and offbyone errors
paul chris wrote:Hmm. I got new task to make this code count 100! factorial digits multiplication but not sum. Any ideas?
Joanne
Mike Simmons wrote:Or perhaps you're supposed to calculate the factorial of 100, then multiply all the digits of the result? That would be kind of silly though, considering there's at least one 0 digit in there.
Mike Simmons wrote:
Or perhaps you're supposed to calculate the factorial of 100, then multiply all the digits of the result? That would be kind of silly though, considering there's at least one 0 digit in there, so the result of multiplying everything would be 0.
That was the "stylistic" problem I mentioned earlier.Mike Simmons wrote: . . . The variable "sum" is misnamed, . . .
paul krov wrote:maybe line 13?
I can't understand what your teacher meant by using Strings for arithmetic. Please ask them for more explanation.paul krov wrote: . . . the teacher now said to make not with BigInteger command but with "strings" . . .
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
The trailboss has a kickstarter
https://coderanch.com/t/754577/GardenMasterkickstarter
