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

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

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

	return counter;
};