- 1

Calculate Time in minutes using javascript both distance and speed is given

You need to plan a road trip. You are traveling at an average speed of 40 miles an hour. Given a distance in miles as input (the code to take input is already present), output to the console the time it will take you to cover it in minutes. Sample Input: 150 Sample Output: 225

13th Jun 2021, 2:31 PM
Avinash
2 odpowiedzi
+ 4
again I say. your attempt?
13th Jun 2021, 2:35 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 4
time = distance / velocity (hour) 1 hour = 60 minutes Now try yourself.
13th Jun 2021, 2:50 PM
TOLUENE
TOLUENE - avatar