未分类 · 2025年11月21日

以下不构成无限循环的语句组是( )。 ;background:yellow;background:yellow do {++n;}while (n<=0); A.int n=10;while (n);n--; B.int n=0;while (1)n++; C.int n=0,i;for (n=0,i=1; ;i++)n+=i; D.int n=0

以下不构成无限循环的语句组是( )。 ;background:yellow;background:yellow do {++n;}while (n<=0); A.int n=10;while (n);n--; B.int n=0;while (1)n++; C.int n=0,i;for (n=0,i=1; ;i++)n+=i; D.int n=0 正确答案:D