📌  相关文章
📜  c# 查找列表中的最大数 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:13.209000             🧑  作者: Mango

代码示例1
int biggest = list[0];//list refer to your list's name
for(int i = 1;i < list.Count;++i)
{
    if(list[i] > biggest)
    {
         biggest = list[i]; 
    }
}
//now biggest will be the biggest number of the list