Advertisement
Guest User

56.js

a guest
Feb 24th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var pytanie=prompt("Jesteś gotowy?", "");
  2. if (pytanie == 1 | pytanie == 'Tak') {
  3.     var dzialanie=prompt("Napisz liczbę większą od 100 i podzielną przez 4", "");
  4.         if (dzialanie%4==0 && dzialanie>100) {
  5.             document.write('<h1> <font color=green> Gratuluje! </font> </h1>');
  6.  
  7.         }
  8.         else  {
  9.             document.write('<h1> <font color=red> Niestety! </font> </h1>');
  10.         }
  11. }
  12. else if (pytanie == 1 | pytanie == 'Nie') {
  13. document.write('<h1> <font color=cyan>Przyjdź następnym razem. :( </font> </h1>');
  14.  
  15. }
  16. else {
  17. document.write('<h1> <font color=red>ERROR :( </font> </h1>');
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement