Created
July 24, 2014 20:19
-
-
Save Bijesse/d8e9611ae0983ffda3c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Sphere Area and Volume</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var r = 0; | |
r = prompt("What is the radius?"); | |
area = 4 * 3.14 * (r *r); | |
volume = (4/3) * 3.14 * (r * r * r); | |
console.log(area); | |
console.log(volume); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment