单项选择题

运行如下的C#程序后,变量sum的值为______
int sum=0;
int i=1;
do
{
sum+=i;
i++;
}while(i<5);

A.6
B.10
C.15
D.30
题目列表

你可能感兴趣的试题

微信扫码免费搜题