摘要:
public int ShuZi(int i) { int sum = 0; if (i <= 0) { sum = 0; } else if (i == 1 || i == 2) { sum = 1; } else { sum = ShuZi(i-1) + ShuZi(i-2); } return 阅读全文
摘要:
int []array=new int [5]{5,3,1,9,7}; for (int i = 0; i < array.Length; i++) { for (int j = i+1; j < array.Length; j++) { if (array[j] < array[i]) { int 阅读全文