Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const a = prompt('podaj początek przedziału') * 1;
- const b = prompt('podaj koniec przedziału') * 1;
- const c = prompt('podaj liczbę: ') * 1;
- if (c >= a && c <= b){
- document.write(`liczba ${c} leży w przedziale (${a}; ${b})`);
- }
- else {
- document.write(`Podano nieprawidłową wartość lub kolejność`);
Advertisement
Add Comment
Please, Sign In to add comment