<?php
//Guntur Ahmad Lion Putranto 10122554 3KA31
$baris = 5; // Jumlah baris segitiga
$i = 1;
do {
for ($j = 1; $j <= $baris - $i + 1; $j++) {
echo "<p> </p>";
}
for ($k = 1; $k <= $i; $k++) {
echo "$k";
}
echo "\n";
$i++;
} while ($i <= $baris);
?>
PD9waHAKLy9HdW50dXIgQWhtYWQgTGlvbiBQdXRyYW50byAxMDEyMjU1NCAzS0EzMQokYmFyaXMgPSA1OyAvLyBKdW1sYWggYmFyaXMgc2VnaXRpZ2EKCiRpID0gMTsKZG8gewogICAgZm9yICgkaiA9IDE7ICRqIDw9ICRiYXJpcyAtICRpICsgMTsgJGorKykgewogICAgICAgIGVjaG8gIjxwPiZuYnNwPC9wPiI7CiAgICB9CiAgICBmb3IgKCRrID0gMTsgJGsgPD0gJGk7ICRrKyspIHsKICAgICAgICBlY2hvICIkayI7CiAgICB9CiAgICBlY2hvICJcbiI7CiAgICAkaSsrOwp9IHdoaWxlICgkaSA8PSAkYmFyaXMpOwo/Pg==