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