about summary refs log tree commit diff stats
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
parenteb4f43e5f32c5a3e27f98e1e0a834ccee3e44697 (diff)
downloadtour-9a690bcccfcefe6ebc10d9329cb390d19012c2bf.tar.gz
*
-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
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184