output to the console the time it will take you to cover it in minutes. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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

24th Feb 2022, 12:12 PM
Chidubem Nwabia
Chidubem Nwabia - avatar
1 Answer
0
general terms: function main() { var distance = parseInt(readLine(), 10); //your code goes here var result=((distance/40)*60) console.log(result) }
24th Feb 2022, 11:50 PM
CompletelyAnonymous
CompletelyAnonymous - avatar