aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/03-do-continue.zc
blob: 74aa29c07b8567e21eac2b14d9a66900e1279ddc (plain) (blame)
1
2
3
4
5
6
7
namespace;
include rt;
fn main() {
	int n = 0, i = 0;
	do { i++; if (i == 2) continue; n = n + i; } while (i < 5);
	rt.put_n(n); rt.put_c(10);
}