Advertisement
PiotrSzewczyk

Zadanie 16/JS

Nov 23rd, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var liczba = prompt("Podaj liczbę");
  2. if(liczba>=0)
  3. {
  4. document.write("Wartość bezwzględna wynosi: "+liczba);
  5. }
  6. else
  7. {
  8.     document.write("Wartość bezwzględna wynosi: "+(liczba*(-1)));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement