Ad
  • Default User Avatar

    This is another copy of both Goldtom and KataSideKick's answer.

    This logic is not correct. It should check if All char are digits, not if any are digits.
    Why repaste someone elses answer if all you are going to do is change one variable from x to c? What is the point?