<?php
  $length = 3;
  for($a = 0; $a <= $length; $a++) {
    for($b = $length; $b >= $a; $b--) {
      echo " ";
    }
    for($c = 0; $c <= $a; $c++) {
      echo "*";
    }
    echo "< br />";
  }
?>
How to make star pyramid with php
Ditulis oleh: Achmad Rifaldi
Notes 
             Updated at : 
4/11/2014 01:46:00 pm
- Labels: Bahasa Pemrograman, PHP
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment