about summary refs log tree commit diff
path: root/examples/10.src
blob: b84084916c42e3c22af449ce995a00eef9cd90ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
let main = () => i64 {
	let counter = 0;

	while counter < 10 {
		print(counter);
		counter = counter + 1;
	};

	while counter % 3 == 0 {
		print(0);
	};

	return counter;
};