Multiple choice:Assuming that a and B are int type variables, the value of B after executing the following statement is:
Assuming that a and B are int type variables, the value of B after executing the following statement is: @ [D] (2)
```
a=1; b=10;
do
{
b-=a;
a++;
}while (b--<0);
```
A. 9
B. -2
C. -1
D. 8
A.9
B.-2
C.-1
D.8
answer:D
```
a=1; b=10;
do
{
b-=a;
a++;
}while (b--<0);
```
A. 9
B. -2
C. -1
D. 8
A.9
B.-2
C.-1
D.8
answer:D