單項選擇題

執(zhí)行下列C++語句:int y =0;for (int x =5;x >0;x--)y +=2;執(zhí)行結(jié)束后,x和y的值分別為()。

A.0,10
B.0,5
C.5,10
D.5,0

微信掃碼免費搜題