" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Przykład PHP:
<?php
$i = count($tablica);
$tablica = array(5,23,11,66,1);
while($i > 0) {
$n = count($tablica);
while($n > 0) {
if($tablica[$n] > $tablica[$n-1]) {
$x = $tablica[$n-1];
$tablica[$n-1] = $tablica[$n];
$tablica[$n] = $x;
}
$n++;
}
$i++;
}
?>