单项选择题

如下程序的输出结果是______。
public class Test
{
void printValue(int m)
{
do {
System.out.println("The value is"+m);
}
while( --m>10)
}
public static void main(String args[])
{
int i=10;
Test t=new Test();
t.printValue(i);
}
}

A.The value is 8
B.The value is 9
C.The value is 10
D.The value is 11
题目列表

你可能感兴趣的试题

微信扫码免费搜题