int [] array = new int [*] ;

  int temp = 0 ;

  for (int i = 0 ; i < array.Length - 1 ; i++)

  {

    for (int j = i + 1 ; j < array.Length ; j++)

    {

      if (array[j] < array[i])

      {

        temp = array[i] ;

        array[i] = array[j] ;

        array[j] = temp ;

      }

    }

  }

相关文章:

  • 2021-05-13
  • 2021-10-22
  • 2021-06-15
  • 2021-05-19
  • 2021-12-30
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2021-04-10
  • 2022-12-23
  • 2022-01-07
  • 2022-01-25
  • 2022-12-23
相关资源
相似解决方案