Full version: jsB@nk » Calculation » Math » Circumference Calculator
URL: https://www.javascriptbank.com/circumference-calculator.html
JavaScript can help you figure the circumference of a circle when you enter the radius.
Full version: jsB@nk » Calculation » Math » Circumference Calculator
URL: https://www.javascriptbank.com/circumference-calculator.html
<SCRIPT LANGUAGE="JavaScript">// Andrew Jones ([email protected])<!-- Beginfunction calculate() {var radius=prompt("Please enter the size of the radius","");var pi=3.14159265359; // estimated to 11 decimal placesvar circ=2*pi*radius;var d=alert("The circumference of a circle with radius "+radius+" is "+circ+".")}// End --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<input type=button value=" Calculate Circumference " onClick="calculate()"><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->