hemb...........
Baiklah kawan, saya Tidak mau banyak bicara. kita langsung saja copy paste script ini...
<?php
function bilanganKecil(){
$MAX_VALUE=200;
$a=array(5,23,7);
for($i=0;$i<count($a) ;$i++){
if($a[$i] < $MAX_VALUE){
$MAX_VALUE=$a[$i];
}
}
echo "Bilangan Terkecilnya adalah <b>".$MAX_VALUE."</b>";
}
bilanganKecil();
function bilanganBesar(){
$MAX_VALUE=0;
$a=array(5,23,7);
for($i=0;$i<count($a) ;$i++){
if($a[$i] > $MAX_VALUE){
$MAX_VALUE=$a[$i];
}
}
echo "Bilangan Terbesarnya adalah <b>".$MAX_VALUE."</b>";
}
bilanganBesar();
?>
1 comments:
I admire how your blog encourages self-reflection. Thank you for helping me think deeply and grow through your thoughtful posts. Visit this article for more knowledge. Experience the excitement of Geometry Dash Free rhythm-based platforming where every level challenges your timing with engaging obstacles.
ReplyPost a Comment