Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const podzielna1 = prompt ("Podaj pierwszą (mniejszą) liczbę");
- if (podzielna1 == 0)
- {
- document.write ("Nie mozna dzielić przez 0");
- }
- else
- {
- const podzielna2 = prompt ("Podaj drugą (większą) liczbę");
- if (podzielna2%podzielna1 == 0)
- {
- document.write ("Twoje liczby są podzielne");
- }
- else
- {
- document.write ("Twoje liczby nie są podzielne");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement