Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="UTF-8">
- <title>
- Sort
- </title>
- </head>
- <body>
- <?php
- $zahl1 = $_POST["zahl1"];
- $zahl2 = $_POST["zahl2"];
- $zahl3 = $_POST["zahl3"];
- $zahl4 = $_POST["zahl4"];
- $zahl5 = $_POST["zahl5"];
- $zahl6 = $_POST["zahl6"];
- $alle = array($zahl1,$zahl2,$zahl3,$zahl4,$zahl5,$zahl6);
- $j = 1;
- $x = 0;
- foreach ($alle as $x) {
- while ($x > $alle[$j+1]) {
- $alle[$j] = $alle[$j+1];
- $alle[$j+1] = $x;
- $j++;
- }
- echo "$x<br />\n";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement