Scriptnya yang for:
<?php
for ($i = 1; $i <= 5; $i++) { print $i ."
"; } $bila = 5; $pola = 1; print "
Bilangan ganjil antara 5 sampai 25
";
for ($pola=1; $pola<10; $pola++) { $bila += 2; print "$bila
";
}
?>
<?php
for ($i = 1; $i <= 5; $i++) { print $i ."
"; } $bila = 5; $pola = 1; print "
Bilangan ganjil antara 5 sampai 25
";
for ($pola=1; $pola<10; $pola++) { $bila += 2; print "$bila
";
}
?>
0 komentar:
Posting Komentar