Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var rok = prompt("Podaj rok");
- if(rok%4==0 && rok%100!=0 || rok%400==0)
- {
- document.write("Podany rok jest przestępny.");
- }
- else
- {
- document.write("Podany rok nie jest przestępny.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement