Anonymous user
Monty Hall problem: Difference between revisions
m
→{{header|BASIC}}: Added trans
(Added BASIC) |
m (→{{header|BASIC}}: Added trans) |
||
Line 167:
=={{header|BASIC}}==
{{works with|QuickBasic|4.5}}
{{trans|Java}}
<qbasic>RANDOMIZE TIMER
DIM doors(3) '0 is a goat, 1 is a car
Line 192 ⟶ 193:
<pre>Switching wins 21805 times.
Staying wins 10963 times.</pre>
=={{header|Fortran}}==
{{works with|Fortran|90 and later}}
|