This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes case problem using I/O Streams Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "case problem using I/O Streams" Watch "case problem using I/O Streams" New topic
Author

case problem using I/O Streams

Iqbal Habibie
Greenhorn

Joined: Dec 04, 2013
Posts: 5
Nice to meet you, i am a newbie i would like to ask a question that bothers me out :

1).add the decimal representation of N! (5 <= N <= 1,000,000) is simply the multiplicity of the prime factor 5 in N! to my script.
2). I wanted to ask how the output of case#3:118 became case#3:27,whether the problem is string or an Integer? Please help me out.



here's my code code:


Output :
Sample Input:118
Sample Output:

Case#3:118
The number of trailing zeroes in 118
factorial is 27

Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2302
    
  49
I don't really understand what your problem is. Can you tell us what you expected the output to be and why.
 
GeeCON Prague 2014
 
subject: case problem using I/O Streams