Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var a=prompt("Podaj liczbe:");
- a=parseInt(a);
- document.write("Wpisałeś liczbę "+a+"<br>");
- if(a%2==0)
- {
- document.write("Liczba parzysta");
- }
- else
- {
- document.write("Liczba nieparzysta");
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement