Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • I think this question is a better duplicate @blhsing Commented Jan 9, 2023 at 6:20
  • @Yash that is not what OP wants. OP wants to check if any of 0-9 are present in the user's input. Judging by their remaining code (how_much can be less than or even greater than 50!), they probably just want it to be any integer, in which case your code is limited to only 10. Commented Jan 9, 2023 at 6:24