Anonymous user
Monty Hall problem: Difference between revisions
m
→version 2: added a comment regarding the door values (goat or car). -- ~~~~
(→{{header|REXX}}: added a second version. -- ~~~~) |
m (→version 2: added a comment regarding the door values (goat or car). -- ~~~~) |
||
Line 2,712:
parse arg t .; if t=='' then t=1000000 /*Not specified? Then use default*/
wins.=0 /*wins.0=stay; wins.1=switching.*/
/*door values: 0=goat 1=car */
do t /*perform this loop T times. */
door.=0 /*set all doors to zero. */
|