blob: 28c32b0c160243359402525883eee2a31a6393ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
// expect: 25/
// spec 4.8.1: continue goes to the next iteration of a while (the test)
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
int i = 0, s = 0;
while (i < 10) { i++; if (i % 2 == 0) continue; s += i; }
pn(s);
return 0;
}
|