Advertisement
tei123

dziwne zadanie 3

May 13th, 2016
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <html>
  2. <head>
  3. <link href="style.css" rel="stylesheef" type="text/css"/>
  4. </head>
  5. <body bgcolor="yellow">
  6. <script>
  7.  
  8. function zadanie()
  9. {
  10.  
  11. var a = Math.floor(Math.random()*101;)
  12. var b = prompt("Podaj b")
  13. b = parseInt(b);
  14. if (b > a)
  15. {
  16. document.write("b jest wieksze")
  17. }
  18.  
  19. if (b < a)
  20. {
  21. document.write("a jest wieksze")
  22. }
  23.  
  24. var s = b+a;
  25. var i = b*a;
  26. var k = a*a;
  27. if (a<0)
  28. {
  29. a= a * -1;
  30. }
  31. }
  32. </script>
  33.  
  34. </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement