echo "<p>The ratio of ".$TotalGuys." guys would success out of the prison after ".
$DaysExpectedOut." days is ".$SuccessOutRatio."</p>";
}
?>
结果为:
The ratio of 100 guys would success out of the prison after 100 days is 0.427885933629
The ratio of 100 guys would success out of the prison after 200 days is 0.845846692964
The ratio of 100 guys would success out of the prison after 300 days is 0.948514054585
The ratio of 100 guys would success out of the prison after 400 days is 0.9817349154
The ratio of 100 guys would success out of the prison after 500 days is 0.993388248453
The ratio of 100 guys would success out of the prison after 600 days is 0.997589538541
The ratio of 100 guys would success out of the prison after 700 days is 0.99911896674
The ratio of 100 guys would success out of the prison after 800 days is 0.999677681922
The ratio of 100 guys would success out of the prison after 900 days is 0.999882043503
The ratio of 100 guys would success out of the prison after 1000 days is 0.99995682707