Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var liczba1 = prompt("Podaj liczbę, przez którą będziesz dzielił:");
- var liczba2 = prompt("Podaj dzielną:");
- if (liczba1==0)
- {
- document.write("Nie można dzielić przez 0");
- }
- else if (liczba2%liczba1==0)
- {
- document.write(liczba2+" jest podzielna przez "+liczba1);
- }
- else
- {
- document.write(liczba2+" nie jest podzielna przez "+liczba1)l;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement