Skip to content

Instantly share code, notes, and snippets.

@Bijesse
Created July 24, 2014 20:19
Show Gist options
  • Save Bijesse/d8e9611ae0983ffda3c0 to your computer and use it in GitHub Desktop.
Save Bijesse/d8e9611ae0983ffda3c0 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sphere Area and Volume</title>
</head>
<body>
</body>
</html>
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