13. The text is given. Identify the numbers in the text.
string text = "text123text";
for (int i = 0; i < text.Length; i++)
{
if (char.IsDigit(text[i]))
Console.WriteLine(text[i]);
}
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment