日期:2014-05-17 浏览次数:20859 次
static void Main(string[] args)
{
int max = 8, min = 2;
IList<int> list = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
int count = 0;
for (int i = 0; i < list.Count; i++)
{
if (list[i] > max
------解决方案--------------------
list[i] < min)
{
count++;
}
}
Console.WriteLine(count);
}
static void Main(string[] args)
{
int max = 8, min = 2,waringcount = 0;
var waring = false;
var list = new List<int>() { 1, 3, 9, 4, 10, 11, 7, 8, 9, 10 };