Anonymous user
Monty Hall problem: Difference between revisions
→{{header|PHP}}: fixed logic
Underscore (talk | contribs) m (→{{header|Perl}}: Removed redundant "exit(0)".) |
(→{{header|PHP}}: fixed logic) |
||
Line 842:
$stay_win = 0;
$doors = array(0, 0, 0);
$doors[
$choice =
$stay_win += $doors[$choice];
$switch_win +=
}
|