You are viewing a single comment's thread. Return to all comments →
Confused initially. Getting NaN. Guessed this is really a problem to learn the use of readLine.
function main() { const PI = Math.PI; let r = readLine(); let area = PI * Math.pow(r, 2); let perimeter = 2 * PI * r; console.log(area); console.log(perimeter);
Day 1: Let and Const
You are viewing a single comment's thread. Return to all comments →
Confused initially. Getting NaN. Guessed this is really a problem to learn the use of readLine.