PHP Indonesia - Facebook | PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ | |
cara buat perulangan seperti ini 0 00 000 00 0 ... Aug 11th 2013, 03:59, by Ahmad Santoso | cara buat perulangan seperti ini
0 00 000 00 0
bagaimana ya saya udah coba menggunakan nested for tpi blm bisa2 mohon bantuannya |
| | puncak = 3 jumlah rownya 5, berarti jumlah row = puncak + (puncak - 1) |
| | script sampean mana? coba dulu baru tanya |
| | <?php
$i_max = 7;
for($i = 1; $i <= $i_max; $i++) {
if($i > ceil($i_max / 2)) $ii_max = $i_max - $i + 1; else $ii_max = $i;
for($ii = 0; $ii < $ii_max; $ii++) { echo "0"; }
echo "<br>"; }
?> |
| | salah ente harusnya jangan ada yg bantu ini untuk melatih logika seharusnya bisa membuat algoritmanya sendiri:) |
| | biar paling gak dia mencoba dulu tulis script punya dia.. nek copy paste kabeh yo iso, kapan majune terus | | |
|
Tidak ada komentar:
Posting Komentar