Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var pytanie=prompt("Jesteś gotowy?", "");
- if (pytanie == 1 | pytanie == 'Tak') {
- var dzialanie=prompt("Napisz liczbę większą od 100 i podzielną przez 4", "");
- if (dzialanie%4==0 && dzialanie>100) {
- document.write('<h1> <font color=green> Gratuluje! </font> </h1>');
- }
- else {
- document.write('<h1> <font color=red> Niestety! </font> </h1>');
- }
- }
- else if (pytanie == 1 | pytanie == 'Nie') {
- document.write('<h1> <font color=cyan>Przyjdź następnym razem. :( </font> </h1>');
- }
- else {
- document.write('<h1> <font color=red>ERROR :( </font> </h1>');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement