Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const l1 = prompt('podaj liczbę a sprawdzę czy jest parzysta') * 1;
- if (l1%2==0){
- document.write(`${l1} jest liczbą parzystą`);
- console.log(`${l1} jest liczbą parzystą`);
- }
- else{
- document.write(`${l1} jest liczbą nieparzystą`);
- console.log(`${l1} jest liczbą nieparzystą`);
- }
Advertisement
Add Comment
Please, Sign In to add comment