Monty Hall problem: Difference between revisions
Content added Content deleted
(added Ursala) |
Underscore (talk | contribs) m (→{{header|Perl}}: Removed redundant "exit(0)".) |
||
Line 834: | Line 834: | ||
print "Stay win ratio " . (100.0 * $stay/$trials) . "\n"; |
print "Stay win ratio " . (100.0 * $stay/$trials) . "\n"; |
||
print "Switch win ratio " . (100.0 * $switch/$trials) . "\n"; |
print "Switch win ratio " . (100.0 * $switch/$trials) . "\n";</lang> |
||
exit 0;</lang> |
|||
=={{header|PHP}}== |
=={{header|PHP}}== |