aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/02-loops.zc
blob: 66d7ea7b9c6b268807caea23c597b1a77e6a5ec7 (plain) (blame)
1
2
3
4
5
6
7
namespace;
include rt;
fn main() {
	let i = 0, n = 0;
	while (i < 4) { n = n + i; i++; }
	rt.put_n(n); rt.put_c(10);
}