单项选择题

下面代码运行后,s 的值是( )。int s = 0; for (int i = 1; i < 100;i++){ if (s > 10) { break; } if (i % 2 == 0) { s += i; }}

A.20
B.12
C.10
D.6
微信扫码免费搜题