- 2
output to the console the time it will take you to cover it in minutes.
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), Sample Input: 150 Sample Output: 225
1 Answer
0
general terms:
function main() {
var distance = parseInt(readLine(), 10);
//your code goes here
var result=((distance/40)*60)
console.log(result)
}