<?php
class Cat{
public function cfb($i){
for($m=1;$m<=$i;$m++){
for($j=1;$j<=$m;$j++){
echo $j."*".$m."=".$j*$m.' ';
}
echo '<br>';
}
}
}
$cat = new Cat();
$number = isset($_POST['number'])?$_POST['number']:'';
$cat->cfb($number);
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form action='' method='post'>
please input your select:<input type="text" name="number" >
<input type="submit" name="submit">
</form>
</body>
</html>
99乘法表
最新推荐文章于 2023-08-02 22:28:57 发布