0
Please help me guys
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 Answers
+ 5
Aulerious Mtokale ,
before we can help you, you should show us your attempt first. if you have not done a try by yourself upto now, please do so. Put your code in playground and link it here. Thanks!
+ 1
function main() {
var distance = parseInt(readLine(), 10);
//your code goes here
var speed = 40; var time = 150/40=3.75*60; return time; } main(225);
}