ini_PlayeR

Array_1

Apr 21st, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. <?php
  2. $bil=array(9,2,10,3,7,5,2);
  3. $max=$bil[0];
  4. for ($i=0;$i<=count($bil)-1;$i++)
  5. {
  6.     if ($bil[$i]>$max) $max=$bil[$i];
  7. }
  8. echo "Bilangan terbesarnya adalah ".$max."<br>";
  9. ?>
Add Comment
Please, Sign In to add comment