Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function circle(r) {
- if (typeof r === 'number') {
- console.log(Math.PI * r * r, 'pole');
- console.log(Math.PI * 2 * r, 'obwód');
- }
- else {
- return false;
- }
- }
- circle(3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement