Is there a way I can check Integers if they contain a certain number in C#?
For example: I want to check for 7. When I enter 17, the code
For example:
I want to check for 7. When I enter 17, the code
int number = 17; int digit = 7; bool result = number.ToString().Contains(digit.ToString());