for 后面多一个分号

judge 难度 3

#loop

一个分号能改变整个程序。

题目

下面代码执行后 s 的值是 15。

int s = 0;
for (int i = 1; i <= 5; i++);
    s += i;
来小码星球,动手写一遍 →