"abc3def".Any(c => char.IsDigit(c)); // Or to make it shorter: "abc3def".Any(char.IsDigit);
accept a string and display if it contains number