in reply to Re: Refactor this to eliminate the duplicated printf?
in thread Refactor this to eliminate the duplicated printf?

A minor nitpick: the control flow is not exactly the same in the OP and the revised version. The difference is with empty input, where the OP code would still print something (or divide by zero).

  • Comment on Re^2: Refactor this to eliminate the duplicated printf?