Qmark: 1
Total Marks: 50
Vol: 8
Font: Microsoft Sans Serif
Size: 10
Time Left:47:18
Multiple Choices
(Choose 1 answer)
What is the output when the sample code below is executed?
int i, x=0;
for(i=1; i< 10; ++i)
if(i%2 == 1)
x = x+i;
else x--;
printf("%d",x);
{
}
A. 20
B. 23
C. 1
D. 21
Ε. 19