You are viewing a single comment's thread. Return to all comments →
function main() { const PI = Math.PI; let r = readLine(); let err = 'Invalid Input' if(r<0 && r>100){ return err; } let area = PI*r*r; let perimeter = 2*PI*r; console.log(area); console.log(perimeter);
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Let and Const
You are viewing a single comment's thread. Return to all comments →