|
|
const PI = 3.14159265359;
|
||
|
|
|
||
|
|
export function area(radius) {
|
||
|
|
return (radius ** 2) * PI;
|
||
|
|
}
|
||
|
|
|
||
|
|
export function circumference(radius) {
|
||
|
|
return 2 * radius * PI;
|
||
|
|
}
|