Monty Hall problem: Difference between revisions

m
→‎{{header|Java}}: Typo in a comment
m (Fixed a Wikipedia copy/paste error)
m (→‎{{header|Java}}: Typo in a comment)
Line 225:
}while(doors[shown] != 1 && shown != choice);
stayWins += doors[choice];//if you wonbywon by staying, count it
//could have switched to win
Anonymous user