Closed

Edit: New topic
Last edited on
You use max = digits[i] - '0' in some places but not others. Check lines 17 (that's where the 57 is coming from) and line 20.
Topic archived. No new replies allowed.