using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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("{0} ", shu[i]);
}
Console.ReadKey();
}
static void Main(string[] args)
{
Program pro = new Program();
}
}
}
j循环那里不应该是j++么