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) }
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)
}