ooo.
$a itu bukan String, tapi variant (bisa di buat segala type).
fungsi $a++ yaitu sama dengan fungsi $a = $a + 1;
untuk $b-- juga sama yaitu $b = $b - 1;
jadi setiap kali looping $a akan di tambah satu, sebaliknay, $b akan di kurangi
satu
n yang waktu itu saya ralat jadi
<?
> $a = 10;
> $b = 1;
> $hasil;
> while ($a != 0){
> $hasil = $a + $b;
> echo"$a + $b = $hasil";
> $a--;
> $b++;
> }
> ?>
________________________________________________________
Kunjungi halaman depan Yahoo! Indonesia yang baru!
http://id.yahoo.com/
[Non-text portions of this message have been removed]
--
www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia
Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED]
## Jobs: itcenter.or.id/jobs ## Bursa: itcenter.or.id/bursa ##
## Jaket ITCENTER tersedia di http://shop.itcenter.or.id
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ITCENTER/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ITCENTER/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/