Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <script>
- var a,b,c,d,e;
- a=prompt("Liczba 1");
- b=prompt("Liczba 2");
- a=parseInt(a);
- b=parseInt(b);
- a=a*a;
- alert(a+" to kwadrat liczby nr1");
- var i;
- if(b>0){
- for(i=0;i<=b;i++)
- {
- document.write(i+"<br>")
- };};
- if(b==0)
- {alert("druga liczba jest rowna 0");
- };
- var j;
- if(b<0)
- {
- for(j=0;j>=b;j--)
- {
- document.write(j+"<br>")
- };};
- </script>
- <br><br><br>
- Strona internetwowa
- <br>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement