- 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
2 odpowiedzi
+ 4
again I say. your attempt?
+ 4
time = distance / velocity (hour)
1 hour = 60 minutes
Now try yourself.