»
EnglishFrenchVietnamese

Print - Circumference Calculator - JavaScriptBank.com

Full version: jsB@nk » Calculation » Math » Circumference Calculator
URL: http://www.javascriptbank.com/circumference-calculator-2.html

Circumference Calculator © JavaScriptBank.comFind out the circumference of a circle by entering its radius. Very simple!

Full version: jsB@nk » Calculation » Math » Circumference Calculator
URL: http://www.javascriptbank.com/circumference-calculator-2.html



JavaScript
<script language="javascript">// Created by: Lee Underwood :: http://javascript.internet.com/function circum() {  var radius = prompt("Enter the radius of the circle","");  var circle = 2 * Math.PI * radius;  alert("The circumference is "+circle+".")}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<input type=button value="Calculate the circumference" onClick="circum()"><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->