Dizilerle Sıralama
[code lang="csharp"] static void Main(string[] args) { int depo = 0; int[] sayi = new int[10]; for (int i = 0; i <= 9; i++) { Console.Write("Sayıyı Giriniz ="); sayi[i] = Convert.ToInt32(Console.ReadLine()); } for (int i = 0; i <= 8; i++) { for (int j = i + 1; j <= 9; j++) { if (sayi [j] < sayi [i]){ depo = sayi [j]; sayi [j] = sayi [i]; sayi [i] = depo ; } } } for (int i = 0; i <= 9; i++) { Console.WriteLine(sayi[i]); } Console.ReadLine(); } [/code]