new chapter: Basic
This commit is contained in:
0
code/Basic/README.md
Normal file
0
code/Basic/README.md
Normal file
4
code/Basic/bywater-1.bas
Normal file
4
code/Basic/bywater-1.bas
Normal 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
3
code/Basic/yabasic-1.bas
Normal file
@@ -0,0 +1,3 @@
|
||||
for i=1 to 10
|
||||
print i, i*i
|
||||
next
|
||||
5
code/Basic/yabasic-2.bas
Normal file
5
code/Basic/yabasic-2.bas
Normal 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
|
||||
Reference in New Issue
Block a user