Jump to content

Monty Hall problem: Difference between revisions

m
m (→‎{{header|APL}}: whitespace)
Line 193:
</pre>
=={{header|APL}}==
<lang apl> ∇ Run runs;doors;i;chosen;cars;goats;swap;stay;ix;prices
<lang apl>
∇ Run runs;doors;i;chosen;cars;goats;swap;stay;ix;prices
[1] ⍝0: Monthy Hall problem
[2] ⍝1: http://rosettacode.org/wiki/Monty_Hall_problem
Line 208 ⟶ 207:
[12] ⎕←'Swap: ',(2⍕100×(swap÷runs)),'% it''s a car'
[13] ⎕←'Stay: ',(2⍕100×(stay÷runs)),'% it''s a car'
</lang>
</lang>
<pre>
Run 100000
Line 215 ⟶ 213:
Stay: 33.46% it's a car
</pre>
 
=={{header|AutoHotkey}}==
<lang ahk>#NoTrayIcon
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.