namespace 第N天
{
internal class Program
{
public Program()
{
Console.WriteLine("请输入十个数字并用逗号分隔");
String shu = Convert.ToString(Console.ReadLine());
string[] ss = shu.Split(',');
for (int i = 0; i < shu.Length-1; i++)
{
int shu1 = i;
for (int j = i + 1; j < shu.Length-1-i ; i++)
{
if (shu[shu1] > shu[j])
{
shu1 = shu[j];
}
}
}
for (int i = 0; i < shu.Length; i++)
{
Console.WriteLine("运用for循环排序{} ", shu[i]);
}
Console.ReadKey();
}
static void Main(string[] args)
{
Program pro = new Program();
}
}
}