Full version: jsB@nk » Calculation » Math » Circumference Calculator
URL: https://www.javascriptbank.com/circumference-calculator-2.html
Find out the circumference of a circle by entering its radius. Very simple!
Full version: jsB@nk » Calculation » Math » Circumference Calculator
URL: https://www.javascriptbank.com/circumference-calculator-2.html
<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-->
<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-->