Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var a=prompt("Podaj pierwszą liczbe");
- var b=prompt("Podaj drugą liczbe");
- var c=prompt("Podaj trzecia liczbe");
- if(a<b && a<c)
- {
- document.write("Kolejność to: "+a);
- if(b<c)
- {
- document.write(b+c);
- }
- else
- {
- document.write(c+b);
- }
- }
- else if(b<a && b<c)
- {
- document.write("Kolejność to: "+b);
- if(a<c)
- {
- document.write(a+c);
- }
- else
- {
- document.write(c+a);
- }
- }
- else if (c<a && c<b)
- {
- document.write("Kolejność to: "+c);
- if(b<a)
- {
- document.write(b+a);
- }
- else
- {
- document.write(a+b);
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement