下列程序功能为:随机产生并显示介于[10,50]之间的10个正整数,用冒泡排序法按升序排列,并显示排序结果。 static void Main(string[] args) { int[] a = new int[10]; Random rd = new Random(); for (int i = 0; i < 10; i++) { a[i] = 【1】) ; Console.Write("{0} ", a[i]); } Console.WriteLine(); for (int i = 0; i < 【2】 ; i++) { int t; for (int j = 0; j < 9- i; j++) { if (【3】 ) { t = a[j]; a[j] = a[j + 1]; 【4】; } } } for (int i = 0; i < 10; i++) Console.Write("{0} ", a[i]); Console.ReadKey(); }