Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1...
- <html>
- <head>
- </head>
- <body>
- <div id="cel"></div>
- <script>
- var a = prompt("Podaj a");
- var b = prompt("Podaj b");
- a = Number(a);
- b = Number(b);
- var c = a+b;
- document.getElementById("cel").innerHTML=c;
- </script>
- </body>
- </html>
- ////
- 2...
- <html>
- <head>
- </head>
- <body>
- <div id="cel"></div>
- <script>
- var a = prompt("Podaj a");
- var b = prompt("Podaj b");
- a = Number(a);
- b = Number(b);
- var c = a+b;
- var d = a-b;
- var e = a*b;
- document.getElementById("cel").innerHTML=c+"<br> "+d+"<br> "+e;
- </script>
- </body>
- </html>
- //////
- 3....
- <html>
- <head>
- </head>
- <body>
- <div id="cel"></div>
- <script>
- var x = prompt("Podaj x");
- x = Number(x);
- var y = (Math.sqrt(x*x+7)/4)-x*x+(Math.sin(x)/6);
- document.getElementById("cel").innerHTML=y;
- </script>
- </body>
- </html>
- ////////
- 4.....
- <html>
- <head>
- </head>
- <body>
- <div id="cel"></div>
- <script>
- var p = prompt("Podaj p");
- p = Number(p);
- var a = Math.sqrt(p);
- document.getElementById("cel").innerHTML=a;
- </script>
- </body>
- </html>
- //////
- 5....
- <html>
- <head>
- </head>
- <body>
- <div id="cel"></div>
- <script>
- var a = prompt("Podaj a");
- var h = prompt("Podaj h");
- a = Number(a);
- h = Number(h);
- var P = (a*h)/2;
- var O = a+h+Math.sqrt((a*a)+(h*h));
- document.getElementById("cel").innerHTML=P+"<br>"+O;
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement