segala bidang
Text
Wednesday, 21 March 2012
penggunaan while dan for (php)
<?php
//fungsi perulangan looping
//perintah while
$a=1;
while($a <=10)
{
echo"<font size='$a'>angka ke $a</font>";
echo"<br>";
$a++;
}
//perintah for
for($i=1;$i<=10;$i++)
{
echo"<font size='$i'>angka ke $i</font>";
echo"<br>";
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment