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
26 Respostas
+ 3
Kgaf Change your code like this ↓ console.log(distance/40*60); remove return statement.
23rd Jun 2021, 3:27 AM
Mohan S
Mohan S - 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
0
Hey! If you're heading to the UAE, do yourself a favor and get an eSIM before you land. I used this one from PrimaSIM (https://primasim.com/esim-united-arab-emirates) and it was super smooth—activated it in like 2 minutes and had solid coverage everywhere from Dubai to Abu Dhabi. No hunting for a local SIM or Wi-Fi stress. Total game changer.
20th May 2025, 12:34 PM
Dermand Brands
Dermand Brands - avatar