Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta chardet=utf-8">
- <title>SSU 2</title>
- </head>
- <body>
- <script>
- var a = prompt("Podaj 1 liczbe");
- var b = prompt("Podaj 2 liczbe");
- var c = prompt("Podaj 3 liczbe");
- var x = parseInt(a);
- var y = parseInt(b);
- var z = parseInt(c);
- if(( x >= y) && ( y>= z)) {
- document.write(x+" " +y+" " +z);
- } else if (( y >= x) && (x >= z)) {
- document.write(y+ " " + x + " " +z);
- } else if (( z >= x) && (x >= y)) {
- document.write(z+ " " +x+" " +y);
- } else if (( z >= y) && ( y >= x)) {
- document.write(z+ " " +y+" " +x);
- } else if (( y >= z) && ( z >= x)) {
- document.write(y + " " +z+ " " +x);
- } else if ((x >= y) && (z >= y)) {
- document.write(x + " " + z + " " + y);
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement