You don't need a private function here. Also I don't think it's a good idea to make the numerator and denominator doubles. For one thing, they may not print out properly, i.e., you may have a fraction 3.0/4.0 where you really want 3/4.
Attached is a simple fraction program. (It really should be improved by reducing to lowest terms.)
Reputation Points: 21
Solved Threads: 1
Junior Poster in Training
Offline 60 posts
since Dec 2004