Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function circleAreaAndPerimeter(radius) {
- let r = parseFloat(radius[0]);
- console.log((Math.PI * r * r).toFixed(2))
- console.log((2 * Math.PI * r).toFixed(2))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement