第一次循环s = s+ t = 0 + 1 = 1;t = t -2 = 1 - 2 = -1;第二次循环s = s + t = 1 - 1 = 0;t = t - 2 = - 1-2 = -3所以 t 的值为所有负奇数所以选 D
第一次循环 s = s+ t = 0 + 1 = 1; t = t -2 = 1 - 2 = -1; 第二次循环 s = s + t = 1 - 1 = 0; t = t - 2 = - 1-2 = -3 所以 t 的值为所有负奇数 所以选 D