📜  在 c# 代码示例中订购 3 个整数

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

代码示例1
if (a > c)
   swap(a, c);

if (a > b)
   swap(a, b);

//Now the smallest element is the 1st one. Just check the 2nd and 3rd

if (b > c)
   swap(b, c);