计算1加到100

<?php
$sum=0;
$i=0;
do{
$sum+=++$i;
}while($i<100);
echo $sum;
?>

posted on 2012-03-05 14:46  风清扬令狐冲  阅读(196)  评论(0编辑  收藏  举报

导航