Св
Светлана
class Program
{
static void Main(string[] args)
{
string str = "";
string pattern = @"\d+";
Regex r = new Regex(pattern);
Console.WriteLine("Введите строку: ");
str = Console.ReadLine();
Match m = r.Match(str);
while (m.Success)
{
str = str.Replace(m.Value, Convert.ToString((Convert.ToInt32(m.Value) * 5)));
m = m.NextMatch();
}
Console.WriteLine(str);
Console.Read();
}
}