[Software Technologies] PHP - Numbers from N to 1
Задачата е буквално 2 реда, но ми гърми лимита за време:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>First Steps Into PHP</title>
</head>
<body>
<form>
N: <input type="text" name="num" />
<input type="submit" />
</form>
<?php
if (isset($_GET["num"])){
for ($i = $_GET["num"];$i > 0;$i--){
echo $i . " ";
}
}
?>
</body>
</html>
https://judge.softuni.bg/Contests/Practice/Index/236#5