Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a = Number (prompt("Podaj pierwszą liczbę: "));
- var b = Number (prompt("Podaj drugą liczbę: "));
- if(a==0){
- document.write("Nie można dzielić przez 0");
- }
- else if(b%a==0){
- document.write("Liczba: "+b+" dzieli się przez: "+a+". Wynik takiego dzielenia wynosi: "+b/a);
- }
- else if(b%a!=0){
- document.write("Liczba: "+b+" nie dzieli się przez: "+a);
- }
Add Comment
Please, Sign In to add comment