<?php

$ini = 1;
$fini = 30;
do {
    echo $ini."\n";
    $ini ++;
} while ($ini <= $fini);
?>




$in = 30;
$fin = 1;
do {
    echo $in."\n";
    $in --;
} while ($in >= $fin);
?>

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: