new chapter: Basic

This commit is contained in:
tTh
2023-03-03 21:27:18 +01:00
parent 6546d1d5c0
commit 6c2d6476b8
7 changed files with 85 additions and 2 deletions

0
code/Basic/README.md Normal file
View File

4
code/Basic/bywater-1.bas Normal file
View File

@@ -0,0 +1,4 @@
10 CLEAR
20 FOR I=1 TO 10
30 PRINT I, I*I
40 NEXT I

3
code/Basic/yabasic-1.bas Normal file
View File

@@ -0,0 +1,3 @@
for i=1 to 10
print i, i*i
next

5
code/Basic/yabasic-2.bas Normal file
View File

@@ -0,0 +1,5 @@
open window 511,511
for x=10 to 495 step 5:for y=10 to 495 step 5
colour x/2,y/2,0
fill rectangle x,y,x+5,y+5
next y:next x