Зачем рекурсия? PHP: function factorial($n) { $f = 1; for ($i = 1; $i <= $n; i++) { $f *= $i; } return $f; }
Ну может и не понравиться: Код (Text): <br /> <b>Notice</b>: Undefined variable: digit1 in <b>/storage/ssd1/577/8853577/public_html/compare.php</b> on line <b>79</b><br /> <option value="0" selected>0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> </select> <select name="digit2" class="form-control col-2 mr-sm-2"> <br /> <b>Notice</b>: Undefined variable: digit2 in <b>/storage/ssd1/577/8853577/public_html/compare.php</b> on line <b>82</b><br /> <option value="0" selected>0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option>