Jump to content

Monty Hall problem: Difference between revisions

m
(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}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.