fork(5) download
  1. using System;
  2. namespace Sorting
  3. {
  4. class Programm
  5. {
  6.  
  7.  
  8. public static void Main(string[] args)
  9. {
  10.  
  11. int[] array = new int[10];
  12. array[0] = 25;
  13. array[1] = 15;
  14. array[2] = 154;
  15. array[3] = 145;
  16. array[4] = 19;
  17. array[5] = 88;
  18. array[6] = 5;
  19. array[7] = 45;
  20. array[8] = 14;
  21. array[9] = 10;
  22.  
  23. }
  24.  
  25.  
  26. public static int[] Inciment(int[] array)
  27. {
  28. int t;
  29.  
  30. for (int i = 0; i < array.Length; i++)
  31. {
  32. for (int j = i + 1; j < array.Length; j++)
  33. {
  34. if (array[i] > array[j])
  35. {
  36. t = array[i];
  37. array[i] = array[j];
  38. array[j] = t;
  39. }
  40. }
  41. Console.WriteLine(array[i] + ", ");
  42. }
  43. return array;
  44. }
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. }
  52. }
  53.  
Success #stdin #stdout 0.01s 13888KB
stdin
Standard input is empty
stdout
Standard output is empty