about summary refs log tree commit diff stats
path: root/tinybasic/dice.bas
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2022-10-19 20:05:03 -0400
committerelioat <elioat@tilde.institute>2022-10-19 20:05:03 -0400
commit9a690bcccfcefe6ebc10d9329cb390d19012c2bf (patch)
treed23fee7f35b3571e04be4f6e39ebf4e5397d5d26 /tinybasic/dice.bas
parenteb4f43e5f32c5a3e27f98e1e0a834ccee3e44697 (diff)
downloadtour-9a690bcccfcefe6ebc10d9329cb390d19012c2bf.tar.gz
*
Diffstat (limited to 'tinybasic/dice.bas')
-rw-r--r--tinybasic/dice.bas10
1 files changed, 10 insertions, 0 deletions
diff --git a/tinybasic/dice.bas b/tinybasic/dice.bas
new file mode 100644
index 0000000..f9d045b
--- /dev/null
+++ b/tinybasic/dice.bas
@@ -0,0 +1,10 @@
+10 LET X = 6
+20 LET Y = R
+30 GOSUB 1000
+40 PRINT Z
+50 END
+1000 REM mode operation
+1010 LET Z = Y/X*X
+1020 LET Z = Y-Z
+1030 RETURN
+2000 PRINT Z
\ No newline at end of file