kernel_memory_dump

mozda VAKO? xd

Mar 10th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.74 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Find the area and circumference of a circle</title>
  4. </head>
  5. <body>
  6.   <script language="JavaScript">
  7.     function CalculateArea(){
  8.         var sol = document.getElementById("solution");
  9.    
  10.         var radius =document.form1.txtRadius.value;
  11.         sol.innerHTML += "<P>The area of the circle is " + (radius * radius * Math.PI) + "</p>";
  12.         sol.innerHTML+="<P>The circumference of the circle is " + (2 * radius * Math.PI) + "</p>";
  13.     }
  14.     </script>
  15.     <form name=form1>
  16.         Enter the radius of circle:
  17.        <input type="text" name="txtRadius" size=10>
  18.        <br>
  19.        <input type="button" value="Calculate" onClick='CalculateArea();'>  
  20.     </form>
  21.     <div id="solution"></div>
  22. </script>
  23. </body>
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment