案例效果图:
评分标准:
<?php
$box1=20;
$box2=7;
echo "两数相加的和是".":<font color='red'>" . ($box1+$box2) ."</font>";
echo "<br/>";
$box1=22;
$box2=11;
echo '两数相减的差是'.":<font color='red'>" . ($box1-$box2) ."</font>";
echo "<br/>";
$box1=152;
$box2=1;
echo "两数相乘的积是".":<font color='red'>" . ($box1*$box2) ."</font>";
echo "<br/>";
$box1=2.375;
$box2=1;
echo "两数相除的商是".":<font color='red'>" . ($box1/$box2) ."</font>";
echo "<br/>";
$box1=125;
$box2=2;
echo "两数相除的余数是".":<font color='red'>" . ($box1%$box2) ."</font>";
?>