<html>
<body>
<?php
function calculation($para1,$para2,$operator){
// write your code here!
}
function sum($start,$end,$step){
// write your code here!
}
calculation(3,4,'add'); // do addition
calculation(3,4,'sub'); // do subtraction
calculation(3,4,'mul'); // do multiplication
calculation(3,4,'div'); // do division
sum(1,100,1);
sum(1,100,2);
?>
</body>
</html>
在“ write your code here!”这里写代码,让输出结果为:
7
-1
12
0.75
5050
2500
谢谢!
海绵宝宝撒
炎炎设计