我无法让程序正确打印数字并正确排序。我需要帮助以使程序正常运行。这个项目的截止日期是今晚 12 点。请帮忙
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sort
{
class Program
{
static void Main(string[] args)
{
List<int> ints = new List<int>() { };
int sort = 0;
for (int i = 1; i > 0; i++)
{
Console.WriteLine("Enter a number");
int number = Convert.ToInt32(Console.ReadLine());
if (number == -1)
break;
{
for (int j = 0; j > ints.Count; j++)
{
if (ints[i] < ints[j])
{
sort = ints[j];
ints[j] = ints[i];
ints[i] = sort;
Console.WriteLine(ints[i].ToString());
}
}
}
}
}
}
}