MarcinKrol

Zad 6 - JS

Nov 24th, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. const liczba = prompt('Podaj liczbe: ') * 1;
  2.  
  3. if (liczba < 7){
  4. alert(`liczba: ${liczba} jest mniejsza od 7`);
  5. }
  6. else if (liczba > 7){
  7. alert(`liczba: ${liczba} jest większa od 7`);
  8. }
  9. else{
  10. alert(`liczba: ${liczba} jest równa 7`);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment