about summary refs log tree commit diff
path: root/examples/10.src
blob: 0ec38eaaa0d0f31fa415b9346c5c8df78d8b8aad (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 == 0 {
		print(0);
	};

	return counter;
};