Advertisement
jebaka

Untitled

Dec 13th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <script type="text/javascript">
  2. var a = prompt("podaj pierwszą liczbę: ");
  3. var b =prompt("podaj drugą liczbę: ");
  4.  
  5. if (a>b)
  6. document.write("Liczba " + a +" jest wieksza od liczby " +b);
  7. else if (a == b)
  8. document.write("Liczby " + a +" i "+b+" są równe");
  9. else
  10. document.write("Liczba" + b +" jest wieksza od liczby " +a);
  11. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement