Advertisement
Qpel

Untitled

Dec 10th, 2018
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. var n=prompt("Gimimo diena:");
  5.  
  6. var na=prompt("Gimimo metai:");
  7. var naa=prompt("Menuo:");
  8. switch (naa)
  9. {
  10. case (naa="1"): {
  11.              if(n < 20)
  12.                 document.write("Oziaragis");
  13.              else
  14.                 document.write("Vandenis");
  15.             }break;
  16.            
  17. case (naa="2"): {
  18.              if(n < 19)
  19.                 document.write("Vandenis");
  20.              else
  21.                 document.write("Zuvys");
  22.             }break;
  23.            
  24. case (naa="3"): {
  25.              if(n < 21)
  26.                 document.write("Zuvys");
  27.              else
  28.                 document.write("Avinas");
  29.             }break;
  30. case (naa="4"): {
  31.              if(n < 20)
  32.                 document.write("Avinas");
  33.              else
  34.                 document.write("Jautis");
  35.             }break;
  36. case (naa="5"): {
  37.              if(n < 21)
  38.                 document.write("Jautis");
  39.              else
  40.                 document.write("Dvyniai");
  41.             }break;
  42. case (naa="6"): {
  43.              if(n < 21)
  44.                 document.write("Dvyniai");
  45.              else
  46.                 document.write("Vezys");
  47.             }break;
  48. case (naa="7"): {
  49.              if(n < 23)
  50.                 document.write("Vezys");
  51.              else
  52.                 document.write("Liutas");
  53.             }break;
  54. case (naa="8"): {
  55.              if(n < 23)
  56.                 document.write("Liutas");
  57.              else
  58.                 document.write("Mergele");
  59.             }break;
  60. case (naa="9"): {
  61.              if(n < 23)
  62.                 document.write("Mergele");
  63.              else
  64.                 document.write("Svarstykles");
  65.             }break;
  66. case (naa="10"): {
  67.              if(n < 23)
  68.                 document.write("Svarstykles");
  69.              else
  70.                 document.write("Skorpionas");
  71.             }break;
  72. case (naa="11"): {
  73.              if(n < 22)
  74.                 document.write("Skorpionas");
  75.              else
  76.                 document.write("Saulys");
  77.             }break;
  78. case (naa="12"): {
  79.              if(n < 22)
  80.                 document.write("Saulys");
  81.              else
  82.                 document.write("Oziaragis");
  83.             }break;
  84. default:
  85. document.write("klaida");
  86. break
  87. }
  88.  
  89.  
  90.  
  91. </script>
  92. </head>
  93. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement