Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cone(r, h) {
- let s = Math.sqrt(r * r + h * h);
- let volume = Math.PI * r * r * h / 3;
- console.log("volume = " + volume);
- let area = Math.PI * r * (r + s);
- console.log("area = " + area);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement