Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var liczba = Number (prompt("Podaj liczbe: "));
- if(liczba>=0){document.write("Wartość bezwzględna z podanej liczby wynosi: "+liczba);
- }
- if(liczba<0){
- liczba=liczba*(-1);
- document.write("Wartość bezwzględna z podanej liczby wynosi: "+liczba);
- }
Add Comment
Please, Sign In to add comment