• + 0 comments
    function main() {
        // Write your code here. Read input using 'readLine()' and print output using 'console.log()'.
        const PI = Math.PI;
        let r = readLine()
        // Print the area of the circle:
         const pis = Math.pow(r,2);
         let ac = PI * pis;
         console.log(ac);
        // Print the perimeter of the circle:
         let pc = 2*PI * r;
         console.log(pc);``