Monty Hall problem: Difference between revisions

Content added Content deleted
(Nimrod -> Nim)
Line 3,345: Line 3,345:
=={{header|X++}}==
=={{header|X++}}==
{{output?|X++}}
{{output?|X++}}
<lang x++>//Evidence of the Monty Hall solution in Dynamics AX.
<lang x++>//Evidence of the Monty Hall solution in Dynamics AX (by Wessel du Plooy - HiGH Software).


int changeWins = 0;
int changeWins = 0;
Line 3,379: Line 3,379:
pause;
pause;
</lang>
</lang>

Output:
<pre>Switching wins 21699 times.
Staying wins 11069 times.</pre>


=={{header|XPL0}}==
=={{header|XPL0}}==