pre-conditional exit. Organized printing clutter

Added if any num or den is 1 then there is no use trying to use the for statement so setting the bool flag to false and exiting the function seems more better. The program is now fully working. Waiting for more comments.

Added more endl's in main for readability.