Necesito que me ayuden con esto gracias con explicación | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Necesito que me ayuden con esto gracias con explicación

Necesitas planear un viaje por carretera

14th Feb 2021, 9:20 PM
Jonathan
Jonathan  - avatar
8 Answers
0
What kind of help ? Question is pretty understandable i guess!
14th Feb 2021, 9:22 PM
Abhay
Abhay - avatar
+ 1
Abhay function main() { var distance = parseInt(readLine(), 10); //tu código va aquí }
14th Feb 2021, 11:03 PM
Jonathan
Jonathan  - avatar
+ 1
Jonathan distance is given , now divide that distance by 40 to get time in hours and then multiply it with 60 to get time in minutes . Se da la distancia de Jonathan, ahora divida esa distancia por 40 para obtener el tiempo en horas y luego multiplíquelo por 60 para obtener el tiempo en minutos.
14th Feb 2021, 11:06 PM
Abhay
Abhay - avatar
+ 1
Jonathan i don't understand what do you mean by "don't do in javascript", simply write following lines inside that function let hours=distance/40; console.log(hours*60) ; --------------------- Jonathan, no entiendo qué quieres decir con "no hacer en javascript", simplemente escribe las siguientes líneas dentro de esa función sea ​​horas = distancia / 40; console.log (horas * 60);
14th Feb 2021, 11:14 PM
Abhay
Abhay - avatar
+ 1
thank you 🙏🏻Abhay
14th Feb 2021, 11:16 PM
Jonathan
Jonathan  - avatar
0
Abhay Do not know how to solve this problem
14th Feb 2021, 11:05 PM
Jonathan
Jonathan  - avatar
0
Abhay But don't do it in JavaScript helps me ?
14th Feb 2021, 11:12 PM
Jonathan
Jonathan  - avatar
0
Abhay I'm sorry, it makes a mistake
15th Feb 2021, 12:27 AM
Jonathan
Jonathan  - avatar