0

Why I don't have an output? Travel planner

function main() { var distance = parseInt(readLine(), 10); //tu código va aquí var tiempo = (distance*60)/40; return tiempo; }

23rd Jun 2021, 3:04 AM
Kgaf
4 odpowiedzi
+ 3
Kgaf Change your code like this ↓ console.log(distance/40*60); remove return statement.
23rd Jun 2021, 3:27 AM
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜ - avatar
+ 1
Hi Kgaf Try console.log(tiempo)
23rd Jun 2021, 3:26 AM
Ollie Q
Ollie Q - avatar
0
Use console.log for it not return
23rd Jun 2021, 3:26 AM
Atul [Inactive]
0
Thanks!
23rd Jun 2021, 3:30 AM
Kgaf