0

Why does this program doesnt said to be right of "the trip planner", when the answers are accurate?

function main() { var distance = parseInt(readLine(), 10); //your code goes here function avg(a,b){ c=(a/b)*60 return c; } c1= avg(590,40) c2= avg(100,40) console.log(c1, c2) }

8th Jul 2021, 8:03 AM
Roshan Bharti
1 Resposta
+ 3
function main() { var distance = parseInt(readLine(), 10); //your code goes here function avg(a, b){ c=(a/b)*60 return c; } c1= avg(distance,40) // c2= avg(100,40) console.log(c1) }
8th Jul 2021, 8:19 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar