Calculate with Math.PI : Math « Development « JavaScript DHTML
- JavaScript DHTML
- Development
- Math
Calculate with Math.PI
<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
var inpRadius;
inpRadius = 12;
alert(Math.PI * ((inpRadius)*(inpRadius)));
</script>
</head>
<body>
</body>
</html>
Related examples in the same category