chalk/programs/basic_while.chalk

9 lines
108 B
Plaintext
Raw Normal View History

2018-08-05 14:25:40 -07:00
fun main(): u0 {
var a = 5;
var b = 0;
while(a) {
b = b + 2;
a = a - 1;
}
}