• + 0 comments

    const PI = Math.PI

    // Write your code here. Read input using 'readLine()' and print output using 'console.log()'.
    const input = readLine()
    
    // Print the area of the circle:
    const circleArea = PI * input**2
    console.log(circleArea)
    
    
    // Print the perimeter of the circle:
    const circlePerimeter = 2 * PI * input
    console.log(circlePerimeter)