Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const l1 = prompt('Podaj pierwszą liczbę(1/3)');
- const l2 = prompt('Podaj drugą liczbę(2/3)');
- const l3 = prompt('Podaj trzecią liczbę(3/3)');
- //l1
- if (l1 <= l2 && l2 <= l3 ){
- document.write(`${l1} <= ${l2} <= ${l3} `);
- }
- else if (l1 <= l3 && l3 <= l2){
- document.write(`${l1} <= ${l3} <= ${l2} `);
- }
- // L2
- else if (l2 <= l1 && l1 <= l3){
- document.write(`${l2} <= ${l1} <= ${l3} `);
- }
- else if (l2 <= l3 && l3 <= l1){
- document.write(`${l2} <= ${l3} <= ${l1} `);
- }
- //l3
- else if (l3 <= l2 && l2 <= l1){
- document.write(`${l3} <= ${l2} <= ${l1} `);
- }
- else if(l3 <= l1 && l1 <= l2){
- document.write(`${l3} <= ${l1} <= ${l2} `);
- }
- document.write('<br> <= - mniejsze lub równe');
Advertisement
Add Comment
Please, Sign In to add comment