Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<form action='' method='post'>
Въведи число:<input type='text' name='chislo'><br />
<input type='submit' name='sub' value='Давай'>
</form>
<?php
if(isset($_POST['sub'])){
$chislo=$_POST['chislo'];
if(!is_numeric($chislo)){
echo "Въведената стойност не е число";
exit;
}
$i=1;
$s=1;
do {
$s=$s*$i;
$i++;
}
while($i<=$chislo);
echo $s;
}
?>