• + 0 comments

    is this little bit stricky question but easy before i did understand i try to access r from parameter , i that simple i should to just access r from readline() input fucntion then used into mine code

    const r = Readline(); const PI = Math.PI;

    const area = Pi *( r * r ); console.log(area);

    const perimeter = 2 * PI * r; console.log(perimeter);