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).
In reply to Re^2: Refactor this to eliminate the duplicated printf?
by Anonymous Monk
in thread Refactor this to eliminate the duplicated printf?
by wanna_code_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |