using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string str = Console.ReadLine();
split(str);
}
private static void split(string str)
{
string numstr ="";
for (int i = 0; i < str.Length; i++)
{
if (str[i] <= '9' & str[i] >= '0')
numstr += str[i];
}
Console.WriteLine(numstr);
}
}
}
请发表评论