Add more small test programs.

This commit is contained in:
2018-08-05 14:25:40 -07:00
parent 230a50c532
commit 61fb44bbce
9 changed files with 59 additions and 0 deletions

14
programs/comb_fib.chalk Normal file
View File

@@ -0,0 +1,14 @@
fun main(): u0 {
var a = 1;
var b = 1;
while(233 - a) {
draw_number(a, 24, 13);
set_delay(30);
var temp = a;
a = b;
b = b + temp;
while(get_delay()){}
draw_number(temp, 24, 13);
}
draw_number(a, 24, 13);
}